ID:               37306
 Comment by:       n dot escuder at intra-links dot com
 Reported By:      php at placebo dot demon dot nl
 Status:           Open
 Bug Type:         PHP options/info functions
 Operating System: Windows 2000
 PHP Version:      5CVS-2006-05-04 (snap)
 New Comment:

The same problems can be reproduced on linux platform with php 5.1.3
CLI and this break all scripts who work with the CLI version that have
a main loop.


Previous Comments:
------------------------------------------------------------------------

[2006-05-04 12:42:26] php at placebo dot demon dot nl

Description:
------------
PHP 5.1.3 and up uses the max_input_time php.ini setting for the
maximum execution time of a script. It should you the
max_execution_time setting.

correct 5.1.2
wrong 5.1.3
wrong 5.1.5-dev Built On: May 04, 2006 06:30 GMT

Reproduce code:
---------------
php.ini setting:
max_execution_time = 1
max_input_time = 5

code:
$time_end = time() + 10;
while (time() <= $time_end) {
}

Expected result:
----------------
Fatal error: Maximum execution time of 1 seconds exceeded in
c:\Apache\htdocs\site\test.php on line 23

Actual result:
--------------
Fatal error: Maximum execution time of 5 seconds exceeded in
c:\Apache\htdocs\site\test.php on line 23


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37306&edit=1

Reply via email to