#37305 [Bgs]: php.exe reports wrong value of max_execution_time
| From: | imscorpio at hotmail dot com | Date: | Thu, 04 May 2006 13:13:55 +0000 |
| Subject: | #37305 [Bgs]: php.exe reports wrong value of max_execution_time | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-96592@lists.php.net to get a copy of this message | ||
ID: 37305
User updated by: imscorpio at hotmail dot com
Reported By: imscorpio at hotmail dot com
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Windows 2003
PHP Version: 5.1.3
New Comment:
Sorry, probably should tell you, the phpinfo() passed to php.exe
returnes the other settings correct from the php.ini
Hope this helps
Previous Comments:
------------------------------------------------------------------------
[2006-05-04 13:10:03] imscorpio at hotmail dot com
Checked it:
phpinfo() in the browser: Configuration File (php.ini) Path =>
C:\WINDOWS\php.ini
phpinfo() passed to php.exe -f : Configuration File (php.ini) Path =>
C:\WINDOWS\php.ini
------------------------------------------------------------------------
[2006-05-04 12:47:39] tony2001@php.net
That's because your php.exe uses different php.ini.
You can check which php.ini is used in phpinfo().
------------------------------------------------------------------------
[2006-05-04 12:38:39] imscorpio at hotmail dot com
Description:
------------
In my php.ini I have the following setting:
max_execution_time = 30
phpinfo() in a browser reports this value correct.
php.exe reports it incorrect
Pass the source code to: php.exe -f
Reproduce code:
---------------
// This want work:
echo (ini_get('max_execution_time'));
// The result is '0'
// This want work
echo phpinfo();
// The result: max_execution_time => 0 => 30
// In this way it works:
ini_set('max_execution_time', '120');
echo (ini_get('max_execution_time'));
// The result is '120'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37305&edit=1