|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-04-13 14:59 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 14 23:00:01 2025 UTC |
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)