Doc #66769 [NEW]: sleep function wrong definition

From: Date: Tue, 25 Feb 2014 14:58:47 +0000
Subject: Doc #66769 [NEW]: sleep function wrong definition
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11017@lists.php.net to get a copy of this message
From: aryans dot vinay at gmail dot com Operating system: any PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:sleep function wrong definition Description: ------------ --- From manual page: http://www.php.net/function.sleep --- This document describe sleep() as follow: "Delays the program execution for the given number of seconds." but problem is it actually delays execution of all the scripts running on the server. so if we run the attached Test Script 10 times in parallel. it'll take 20 seconds to complete all the requests. Please fix the words in documetation. Thanks :) Test script: --------------- <?php sleep(2); echo "Hello"; -- Edit bug report at https://bugs.php.net/bug.php?id=66769&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66769&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66769&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66769&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66769&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66769&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66769&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66769&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66769&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66769&r=support Expected behavior: https://bugs.php.net/fix.php?id=66769&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66769&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66769&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66769&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66769&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66769&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66769&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66769&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66769&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66769&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66769&r=mysqlcfg

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