From: mail at arnebrodowski dot de
Operating system: Linux
PHP version: 5.2.1
PHP Bug Type: *Configuration Issues
Bug description: max_execution_time and max_input_time settings ignored
Description:
------------
Settings of max_execution_time and max_input_time in php.ini are ignored
in the cli binary.
works with (see expected result):
$ php -v
PHP 5.1.6 (cli) (built: Sep 13 2006 15:56:23)
doesn't work with:
$ php -v
PHP 5.2.1 (cli) (built: Feb 12 2007 14:36:29)
I checked that the correct php.ini is loaded/parsed with:
$ strace php 2>&1 | grep ini
open("/etc/httpd/php-cli.ini", O_RDONLY) = 3
lstat64("/etc/httpd/php-cli.ini", {st_mode=S_IFREG|0644, st_size=45407,
...}) = 0
Reproduce code:
---------------
$ cat /etc/httpd/php-cli.ini | grep '^max_'
max_execution_time = 300
max_input_time = 300
$ php -r "phpinfo();" | grep '^max_'
Expected result:
----------------
max_execution_time => 0 => 300
max_input_time => -1 => 300
Actual result:
--------------
max_execution_time => 0 => 0
max_input_time => -1 => -1
(as a result my scripts stop processing input after 60 seconds)
--
Edit bug report at http://bugs.php.net/?id=41076&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=41076&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=41076&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=41076&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41076&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=41076&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41076&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41076&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41076&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41076&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41076&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=41076&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=41076&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41076&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41076&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41076&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41076&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41076&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41076&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41076&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41076&r=mysqlcfg