#37305 [Opn->Bgs]: php.exe reports wrong value of max_execution_time

From: Date: Thu, 04 May 2006 12:47:39 +0000
Subject: #37305 [Opn->Bgs]: php.exe reports wrong value of max_execution_time
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-96587@lists.php.net to get a copy of this message
ID: 37305 Updated by: tony2001@php.net Reported By: imscorpio at hotmail dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows 2003 PHP Version: 5.1.3 New Comment: That's because your php.exe uses different php.ini. You can check which php.ini is used in phpinfo(). Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#96587) next »