ID: 50531 User updated by: net_php at mojocafe dot jp Reported By: net_php at mojocafe dot jp Status: Open Bug Type: *General Issues Operating System: OS 10.6.2 PHP Version: 5.3.1 New Comment:
Yes. This is a CLI script. Previous Comments: ------------------------------------------------------------------------ [2009-12-21 11:39:48] net_php at mojocafe dot jp Sorry, yes, the original submission uses the word 'crash' but that was mistaken: 'terminates with fatal error' is what I meant. 11:36:44 $ php -i | grep _time allow_call_time_pass_reference => On => On max_execution_time => 0 => 0 max_input_time => -1 => -1 mysql.connect_timeout => 180 => 180 default_socket_timeout => 60 => 60 ------------------------------------------------------------------------ [2009-12-21 11:31:52] j...@php.net First of all, this is NOT any crash. Does it happen on command line? What does this output: # php -i | grep _time ------------------------------------------------------------------------ [2009-12-21 10:47:36] net_php at mojocafe dot jp $ 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. ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/50531 -- Edit this bug report at http://bugs.php.net/?id=50531&edit=1