#48949 [Bgs]: max_execution_time from php.ini ignored
| From: | giunta dot gaetano at gmail dot com | Date: | Fri, 17 Jul 2009 12:52:13 +0000 |
| Subject: | #48949 [Bgs]: max_execution_time from php.ini ignored | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-139875@lists.php.net to get a copy of this message | ||
ID: 48949
User updated by: giunta dot gaetano at gmail dot com
Reported By: giunta dot gaetano at gmail dot com
Status: Bogus
Bug Type: *General Issues
Operating System: vista sp2
PHP Version: 5.3.0
New Comment:
Thanks for the tip, but I would not have opened the issue without
checking first phpinfo().
As stated in the initial report, even ini_get('max_execution_time')
reports the value of 300
Previous Comments:
------------------------------------------------------------------------
[2009-07-17 12:41:51] jani@php.net
Your php.ini isn't loaded. Use phpinfo() output to figure out which one
is actually used. No bug here.
------------------------------------------------------------------------
[2009-07-17 07:32:26] giunta dot gaetano at gmail dot com
max_execution_time=300 in php.ini (using apache sapi btw)
------------------------------------------------------------------------
[2009-07-16 22:24:20] pajoye@php.net
And what's the value set in php.ini?
------------------------------------------------------------------------
[2009-07-16 22:17:27] giunta dot gaetano at gmail dot com
Description:
------------
On windows vista, with apache 2.2.11, php 5.3.0 vc9 threadsafe, the
max_execution_time ini parameter is read correctly (as shown by
ini_get() and phpinfo()) but never used.
After 60 secs, the script times out with the message
"Fatal error: Maximum execution time of 60 seconds exceeded".
Adding a set_time_limit() or ini_set() call solves the problem.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48949&edit=1