#33405 [WFx->Opn]: set_time_limit() does not work
| From: | nohn@php.net | Date: | Mon, 20 Jun 2005 11:11:41 +0000 |
| Subject: | #33405 [WFx->Opn]: set_time_limit() does not work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80699@lists.php.net to get a copy of this message | ||
ID: 33405
Updated by: nohn@php.net
Reported By: nohn@php.net
-Status: Wont fix
+Status: Open
Bug Type: Unknown/Other Function
Operating System: CYGWIN_NT-5.1
-PHP Version: 4.3.11
+PHP Version: 5.1.0b1
New Comment:
What's that? I wrote that it also happens with 5.1.0b1 and latested
5-dev-snapshot. So reopening this.
Previous Comments:
------------------------------------------------------------------------
[2005-06-20 10:26:41] sniper@php.net
In PHP 4 we will never support Cygwin. Use the prebuilt binaries
instead. (Might be different issue for PHP 5.1 which has newer libtool,
etc.)
See also bug #33156
------------------------------------------------------------------------
[2005-06-20 09:53:07] nohn@php.net
Description:
------------
set_time_limit() does not work unter WinXP/Cygwin, Win2k/Cygwin.
Verified with 4.3.11, 4.4.0RC1, 5.0.4, 5.1.0b1, 5.1-dev.
It works on the same machine under Linux.
Reproduce code:
---------------
<?php
ini_set('display_errors', 0);
echo "Start\n";
function boo()
{
echo "Shutdown\n";
}
register_shutdown_function("boo");
/* not necessary, just to show the error sooner */
set_time_limit(1);
/* infinite loop to simulate long processing */
for (;;) { }
echo "End\n";
?>
Expected result:
----------------
The script terminates after 1 second
Actual result:
--------------
The script loops until it gets interrupted:
$ date; php 005a.php; date
Mon Jun 20 09:45:11 2005
Content-type: text/html
X-Powered-By: PHP/4.3.11
Start
^C
Mon Jun 20 09:48:18 2005
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33405&edit=1