php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33405 set_time_limit() does not work
Submitted: 2005-06-20 09:53 UTC Modified: 2005-06-20 13:14 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: nohn@php.net Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.1.0b1 OS: CYGWIN_NT-5.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nohn@php.net
New email:
PHP Version: OS:

 

 [2005-06-20 09:53 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-20 10:26 UTC] 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 13:11 UTC] nohn@php.net
What's that? I wrote that it also happens with 5.1.0b1 and latested 5-dev-snapshot. So reopening this.
 [2005-06-20 13:14 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See also bug #33156
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC