Bug #79334 [NEW]: first sleep() not working

From: Date: Tue, 03 Mar 2020 08:21:03 +0000
Subject: Bug #79334 [NEW]: first sleep() not working
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225848@lists.php.net to get a copy of this message
From: abolfazl dot ziaratban at gmail dot com Operating system: OpenBSD 6.5 PHP version: 7.3.15 Package: *General Issues Bug Type: Bug Bug description:first sleep() not working Description: ------------ PHP Version : 7.3.10 OpenBSD Version : 6.5 tested by two web server : -- Apache Version : Apache/2.4.41 (Unix) LibreSSL/2.9.1 -- OpenBSD built-in httpd web server first sleep() function not working ! Test script: --------------- <?php $time1 = date('H:i:s'); sleep(10); $time2 = date('H:i:s'); sleep(5); $time3 = date('H:i:s'); sleep(5); $time4 = date('H:i:s'); sleep(5); $time5 = date('H:i:s'); sleep(5); $time6 = date('H:i:s'); sleep(5); $time7 = date('H:i:s'); echo "$time1<br>$time2<br>$time3<br>$time4<br>$time5<br>$time6<br>$time7"; Expected result: ---------------- 08:07:50 08:08:00 <---- is here ... Actual result: -------------- 08:07:50 08:07:52 <---- is here 08:07:57 08:08:02 08:08:07 08:08:12 08:08:17 -- Edit bug report at https://bugs.php.net/bug.php?id=79334&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79334&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79334&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79334&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79334&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79334&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79334&r=support Expected behavior: https://bugs.php.net/fix.php?id=79334&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79334&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79334&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79334&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79334&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79334&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79334&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79334&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79334&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79334&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79334&r=mysqlcfg

« previous php.bugs (#225848) next »