Bug #69044 [NEW]: time_sleep_until() starts to early

From: Date: Thu, 12 Feb 2015 21:08:44 +0000
Subject: Bug #69044 [NEW]: time_sleep_until() starts to early
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190635@lists.php.net to get a copy of this message
From: marc at gutt dot it Operating system: Debian PHP version: 5.4.37 Package: Date/time related Bug Type: Bug Bug description:time_sleep_until() starts to early Description: ------------ --- From manual page: http://www.php.net/function.time-sleep-until --- time_sleep_until() starts one second to early. Test script: --------------- <?php $sleep_until = mktime(date('H'), date('i'), date('s') + 15); echo "sleep until " . date('c', $sleep_until) . "\n"; time_sleep_until($sleep_until); echo "woke up at " . date('c'); /* returns: sleep until 2015-02-12T22:01:19+01:00 woke up at 2015-02-12T22:01:18+01:00 */ ?> -- Edit bug report at https://bugs.php.net/bug.php?id=69044&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69044&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69044&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69044&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69044&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69044&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69044&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69044&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69044&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69044&r=support Expected behavior: https://bugs.php.net/fix.php?id=69044&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69044&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69044&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69044&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69044&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69044&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69044&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69044&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69044&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69044&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69044&r=mysqlcfg

« previous php.bugs (#190635) next »