php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41076 max_execution_time and max_input_time settings ignored
Submitted: 2007-04-13 14:47 UTC Modified: 2007-04-13 14:59 UTC
From: mail at arnebrodowski dot de Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 5.2.1 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
9 - 8 = ?
Subscribe to this entry?

 
 [2007-04-13 14:47 UTC] mail at arnebrodowski dot de
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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-13 14:59 UTC] tony2001@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 23:01:27 2024 UTC