summaryrefslogtreecommitdiff
path: root/ext/standard/basic_functions.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2019-11-07 01:10:52 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2019-11-07 17:56:26 +0100
commit662afc80f82dd42b1023d0ee424136e8b46cfb69 (patch)
treeed9226624e6c322b8822c8360e5c49ddff473e19 /ext/standard/basic_functions.c
parente710862f8ce205cadaccb1734beced48c8425940 (diff)
downloadphp-git-662afc80f82dd42b1023d0ee424136e8b46cfb69.tar.gz
Remove PHP_SLEEP_NON_VOID as it is not useful anymore
Diffstat (limited to 'ext/standard/basic_functions.c')
-rwxr-xr-xext/standard/basic_functions.c8
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));
}
/* }}} */