ID: 50531 User updated by: net_php at mojocafe dot jp Reported By: net_php at mojocafe dot jp -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: OS 10.6.2 PHP Version: 5.3.1 New Comment:
$ php --ini Configuration File (php.ini) Path: /usr/local/etc Loaded Configuration File: /usr/local/etc/php.ini Scan for additional .ini files in: /usr/local/etc/php Additional .ini files parsed: /usr/local/etc/php/extensions.ini $ grep 200 /usr/local/etc/php/extensions.ini $ grep 200 /usr/local/etc/php.ini ; Enforce year 2000 compliance (will cause problems with non-compliant browsers) memory_limit = 200M ; Maximum amount of memory a script may consume (128MB) ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with ; does not currently support this feature (03/17/2002) I've looked everywhere for the 200 and I can't find one anywhere. Also the script is not terminating after 200 seconds but more like half-an-hour. Thanks. Previous Comments: ------------------------------------------------------------------------ [2009-12-21 10:41:32] ahar...@php.net Run "php --ini" in a terminal and check which configuration files are actually being loaded. Chances are that something else is being loaded that you're unaware of. (Particularly since the default in PHP is 30 seconds, and so far as I can tell, there's nowhere in the PHP source code that could magically set the value to 200 seconds.) ------------------------------------------------------------------------ [2009-12-21 10:32:20] net_php at mojocafe dot jp Thanks for the response. As noted this happens on a number of different installs with exactly the same result. One weird thing is that the loop always crashes at between the 566 and 569th iteration. Always close but not the same. I even tried removing the .ini file with the same result. There is a shell_exec in the loop, but watching the last time exactly as it stopped with a fatal error there was no load issue on the server, but where the line number indicated a different place (there seems to be no pattern here). Since PHP itself doesn't seem to be crashing but the script is giving a fatal error, I'm not quite sure what the best approach for giving you more information is. ------------------------------------------------------------------------ [2009-12-21 10:21:33] j...@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2009-12-19 11:20:20] net_php at mojocafe dot jp Description: ------------ I have a long running script that crashes with the following message: PHP Fatal error: Maximum execution time of 200 seconds exceeded in xxx on line xxx Whichever I used I get the above timeout of 200 seconds after maybe 10-20 minutes of the script running. I can't find 200 seconds anywhere in any of the settings. Strangely too it seems always to give the same line unless I change the script in which case it gives another line with a different function. i.e. an unchanged script gives the error in the same place but a change script gives it at a different place. (Note: a previous bug report was erroneously marked at bogus because I reported that the crash for two different machines). Reproduce code: --------------- 20:04:59 $ php --version PHP 5.3.1 (cli) (built: Dec 19 2009 16:49:18) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies # grep max_execution_time /usr/local/etc/php.ini max_execution_time = 30 ; Maximum execution time of each script, in seconds Expected result: ---------------- Expect the script to run till completion. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50531&edit=1