diff options
Diffstat (limited to 'ext/standard/basic_functions.c')
-rwxr-xr-x | ext/standard/basic_functions.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 6135ace457..b11311b51c 100755 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -2972,7 +2972,7 @@ PHP_FUNCTION(flush) } /* }}} */ -/* {{{ proto void sleep(int seconds) +/* {{{ proto int sleep(int seconds) Delay for a given number of seconds */ PHP_FUNCTION(sleep) { @@ -2986,12 +2986,8 @@ PHP_FUNCTION(sleep) zend_value_error("Number of seconds must be greater than or equal to 0"); return; } -#ifdef PHP_SLEEP_NON_VOID - RETURN_LONG(php_sleep((unsigned int)num)); -#else - php_sleep((unsigned int)num); -#endif + RETURN_LONG(php_sleep((unsigned int)num)); } /* }}} */ |