#on some *nix systems sleep() is implemented with SIGALRM. When SIGALRM
#interrupts sleep() it returns the number of seconds that has to be slept
#till the number of seconds wanted by the script. Sleep() on Windows is
# void.
}
convert_to_long_ex(num);
- php_sleep(Z_LVAL_PP(num));
+#ifdef PHP_SLEEP_NON_VOID
+ RETURN_LONG(
+#endif
+ php_sleep(Z_LVAL_PP(num))
+#ifdef PHP_SLEEP_NON_VOID
+ )
+#endif
+ ;
}
/* }}} */
/* global variables */
extern pval *data;
#if !defined(PHP_WIN32)
+#define PHP_SLEEP_NON_VOID
#define php_sleep sleep
extern char **environ;
#endif /* !defined(PHP_WIN32) */