Summary: | PHP5 cli ignores values in php.ini | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Marcel Meckel <gentoo.org> |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | VERIFIED TEST-REQUEST | ||
Severity: | major | CC: | php-bugs |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | http://bugs.php.net/bug.php?id=37408 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Marcel Meckel
2006-07-22 03:43:07 UTC
Please update to dev-lang/php-5.1.4-r4 which fixes a bug in the handling of the max time values. Also, from http://ch2.php.net/manual/en/features.commandline.php, please note: "max_execution_time default: 0 (unlimited) Due to endless possibilities of using PHP in shell environments, the maximum execution time has been set to unlimited. Whereas applications written for the web are often executed very quickly, shell application tend to have a much longer execution time. Note: These directives cannot be initialized with another value from the configuration file php.ini or a custom one (if specified). This is a limitation because those default values are applied after all configuration files have been parsed. However, their value can be changed during runtime (which does not make sense for all of those directives, e.g. register_argc_argv)." So, whatever you set in php.ini is anyway ignored and reset to 0 for max_execution_time. But the 60 seconds bug you were experiencing is as far as I can see caused by that bug that's fixed with upgrading your PHP installation, and the value of 60 seconds comes from the max_input_time directive if you were wondering. Best regards, CHTEKK. # time php -d max_execution_time=20 /foo/bar/script_doing_mysql_thingies.php real 1m12.576s user 0m2.768s sys 0m52.675s Why now the script didn't get terminated after 20 seconds? Ok, will try new PHP version Works. Ok, closing. Closing. Best regards, CHTEKK. |