Bug->Doc #53409 [Tbd->Asn]: sleep() return NULL
| From: | aharvey@php.net | Date: | Fri, 26 Nov 2010 09:17:54 +0000 |
| Subject: | Bug->Doc #53409 [Tbd->Asn]: sleep() return NULL | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5584@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: To be documented
+Status: Assigned
-Type: Bug
+Type: Documentation Problem
-Package: Unknown/Other Function
+Package: Documentation problem
Operating System: Windows XP
PHP Version: 5.3.3
-Assigned To:
+Assigned To: aharvey
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[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