php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25867 Sleep() no more work corectly on 4.3.3
Submitted: 2003-10-14 12:29 UTC Modified: 2003-10-14 20:13 UTC
From: plc2k at altern dot org Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.3.3 OS: windows
Private report: No CVE-ID: None
 [2003-10-14 12:29 UTC] plc2k at altern dot org
Description:
------------
i used a sleep() function in my php page, and after an upgrade of php, this one no more work.
so it work on older version of php like 4.2.0 but not on last one, like 4.3.3

Reproduce code:
---------------
<?php
echo "test";
$waitfile = "C:\wait.txt";
while (@!unlink($waitfile))
{
echo "<B>.</B> ";
sleep(2);
}
?>

Expected result:
----------------
test . . . . . . . . . .

(here the "." are add one by one every 2 seconds)

Actual result:
--------------
test. . . . . . . . . . . . . 
Fatal error: Maximum execution time of 30 seconds exceeded in c:\uptest2.php on line 8

(here, all the points appear at the timeout)

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-14 12:33 UTC] sniper@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

..

 [2003-10-14 13:31 UTC] plc2k at altens dot org
this is not a bug ? so why it work in older version ? 
i spend many time and used many forums, nobody know ..
so i 'm ok to read again the doc .. but ...
why it work in older version ...
 [2003-10-14 13:40 UTC] plc2k at altern dot org
have you tested my example at least ?
as i said it work on older version and not on the new one, so for me it's bug i see nothing on http://fr.php.net/sleep to let me know i'm wrong in my code...
i posted a ot of messages in lot of forums, nobody know why it don't work ...
 [2003-10-14 20:13 UTC] sniper@php.net
Your script works just like it should work. No bug here.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Aug 17 18:01:30 2024 UTC