From ca054293e979aef69ea9e4f6f6e0a50231d9cf58 Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Fri, 26 Nov 2010 10:03:03 +0000 Subject: [PATCH] Clarify sleep() return values further per bjori's e-mail and prod on IRC. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305766 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/misc/functions/sleep.xml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/reference/misc/functions/sleep.xml b/reference/misc/functions/sleep.xml index cc9f945b2e..d2fa60abdc 100644 --- a/reference/misc/functions/sleep.xml +++ b/reference/misc/functions/sleep.xml @@ -37,12 +37,16 @@ &reftitle.returnvalues; - On Windows, sleep always returns &null;. + On all platforms, sleep returns &false; if the + seconds parameter is invalid. + + + On Windows, provided the aforementioned seconds + parameter is valid, sleep always returns &null;. On other platforms, sleep returns zero on success, or - &false; on errors. If the call was interrupted by a signal, - sleep returns the number of seconds left to sleep. + the number of seconds left to sleep if interrupted by a signal.