Bug #79334 [Fbk->Asn]: first sleep() not working

From: Date: Thu, 26 Aug 2021 18:10:49 +0000
Subject: Bug #79334 [Fbk->Asn]: first sleep() not working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236096@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79334&edit=1 ID: 79334 User updated by: abolfazl dot ziaratban at gmail dot com Reported by: abolfazl dot ziaratban at gmail dot com Summary: first sleep() not working -Status: Feedback +Status: Assigned Type: Bug Package: *General Issues Operating System: OpenBSD 6.5 PHP Version: 7.3.15 Assigned To: cmb Block user comment: N Private report: N New Comment: Christoph Becker Previous Comments: ------------------------------------------------------------------------ [2021-08-24 12:30:30] cmb@php.net Is this still an issue for you with any of the actively supported PHP versions[1]? If so, what does the following script output: <?php var_dump(error_reporting(-1)); var_dump(date('H:i:s')); var_dump(sleep(10)); var_dump(date('H:i:s')); ?> [1] <https://www.php.net/supported-versions.php> ------------------------------------------------------------------------ [2020-03-04 02:53:48] abolfazl dot ziaratban at gmail dot com no , i didn't install signal handler. i normally install OpenBSD 6.5 on VMware Workstation and install php + apache packages in OpenBSD with pkg_add command. <?php $time1 = date('H:i:s'); $out1 = sleep(10); $time2 = date('H:i:s'); $out2 = sleep(5); $time3 = date('H:i:s'); $out3 = sleep(5); $time4 = date('H:i:s'); $out4 = sleep(5); $time5 = date('H:i:s'); $out5 = sleep(5); $time6 = date('H:i:s'); $out6 = sleep(5); $time7 = date('H:i:s'); echo "$time1<br>$time2<br>$time3<br>$time4<br>$time5<br>$time6<br>$time7<br>"; echo "$out1<br>$out2<br>$out3<br>$out4<br>$out5<br>$out6"; output: 02:47:07 02:47:08 02:47:13 02:47:18 02:47:23 02:47:28 02:47:33 0 0 0 0 0 0 ------------------------------------------------------------------------ [2020-03-03 18:40:10] requinix@php.net This is unlikely to be a bug in PHP. What value is sleep returning from the first call? Have you tried installing signal handlers to see if/what signals are being received? ------------------------------------------------------------------------ [2020-03-03 08:29:27] abolfazl dot ziaratban at gmail dot com no ! ------------------------------------------------------------------------ [2020-03-03 08:26:46] requinix@php.net Was the sleep() interrupted? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=79334 -- Edit this bug report at https://bugs.php.net/bug.php?id=79334&edit=1

« previous php.bugs (#236096) next »