Doc #53409 [Asn->Csd]: sleep() return NULL

From: Date: Fri, 26 Nov 2010 09:19:25 +0000
Subject: Doc #53409 [Asn->Csd]: sleep() return NULL
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5585@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53409&edit=1 ID: 53409 Updated by: aharvey@php.net Reported by: webmaster at skarmflyg dot org Summary: sleep() return NULL -Status: Assigned +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: Windows XP PHP Version: 5.3.3 Assigned To: aharvey Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2010-11-26 10:19:18] aharvey@php.net Automatic comment from SVN on behalf of aharvey Revision: http://svn.php.net/viewvc/?view=revision&revision=305764 Log: Fix doc bug #53409 (sleep() return NULL). ------------------------------------------------------------------------ [2010-11-25 23:57:52] pajoye@php.net Sleep on windows returns nothing as well as some other platforms. The result of sleep is actually platform dependent (NULL/FALSE or 0/FALSE). ------------------------------------------------------------------------ [2010-11-25 22:45:15] webmaster at skarmflyg dot org Description: ------------ --- From manual page: http://www.php.net/function.sleep#Return Values --- Sleep should return int or possibly boolean false but returns NULL. Using PHP 5.3.3 Apache 2.2.6 Windows XP SP3 Test script: --------------- $x=sleep(1); var_dump($x); // Outputs NULL. Expected int 0. Expected result: ---------------- According to documentation $x should be integer 0 or possibly false. Actual result: -------------- Variable $x becomes NULL. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53409&edit=1

« previous php.doc.bugs (#5585) next »