]> granicus.if.org Git - php/commitdiff
MFH
authorAndrey Hristov <andrey@php.net>
Tue, 2 Nov 2004 17:25:14 +0000 (17:25 +0000)
committerAndrey Hristov <andrey@php.net>
Tue, 2 Nov 2004 17:25:14 +0000 (17:25 +0000)
ext/standard/basic_functions.c
main/php.h

index 0cbf957a1316460598635ceda3757467fbee7e25..d2558c9cf73406490b1f990df91d2a7a8ae218bf 100644 (file)
@@ -1649,7 +1649,14 @@ PHP_FUNCTION(sleep)
        }
 
        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
+       ;
 }
 /* }}} */
 
index f19affd17836abe57b573c1deab90fe342fc81c5..2871db6be4c1914002a30ffd5edcc861af9184d4 100644 (file)
@@ -271,6 +271,7 @@ extern char **environ;
 #else  /* NETWARE */
 extern char **environ;
 #define php_sleep sleep
+#define PHP_SLEEP_NON_VOID
 #endif /*  NETWARE */
 #endif /* !defined(PHP_WIN32) */