#50516 [NEW]: CLI script crashes with PHP Fatal error: Maximum execution time of 200 seconds
| From: | net_php at mojocafe dot jp | Date: | Fri, 18 Dec 2009 11:07:57 +0000 |
| Subject: | #50516 [NEW]: CLI script crashes with PHP Fatal error: Maximum execution time of 200 seconds | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-145888@lists.php.net to get a copy of this message | ||
From: net_php at mojocafe dot jp
Operating system: OS X, FreeBSD 7.2
PHP version: 5.2.12
PHP Bug Type: Reproducible crash
Bug description: CLI script crashes with PHP Fatal error: Maximum execution time of 200 seconds
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
I have tried this script using the installed PHP CLI on OS 10.6.2, a
separate source installed PHP CLI installed on OS 10.6.2 of PHP
5.2.12, and finally a totally separate FreeBSD server running FreeBSD
7.2
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.
Reproduce code:
---------------
FREEBSD/OS X # php -r 'phpinfo();' | egrep 'php\.ini|max_execution_time'
Configuration File (php.ini) Path => /usr/local/etc
Loaded Configuration File => /usr/local/etc/php.ini
max_execution_time => 0 => 0
FREEBSD/OS X # grep max_execution_time /usr/local/etc/php.ini
max_execution_time = 30 ; Maximum execution time of each script, in
seconds
OSX #$ php -v
PHP 5.2.12 (cli) (built: Dec 18 2009 03:04:58)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
FREEBSD # PHP 5.2.11 with Suhosin-Patch 0.9.7 (cli) (built: Sep 30 2009
16:42:21)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
Script starts with
<?php
set_time_limit(0);
Expected result:
----------------
Expect the script to run till completion.
--
Edit bug report at http://bugs.php.net/?id=50516&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50516&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50516&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50516&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50516&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50516&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50516&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50516&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50516&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50516&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50516&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50516&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50516&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50516&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50516&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50516&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50516&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50516&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50516&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50516&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50516&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50516&r=mysqlcfg