#32668 [Opn->Bgs]: Setting error_reporting in PHP.INI has no effect

From: Date: Mon, 11 Apr 2005 09:59:50 +0000
Subject: #32668 [Opn->Bgs]: Setting error_reporting in PHP.INI has no effect
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-76634@lists.php.net to get a copy of this message
ID: 32668 Updated by: johannes@php.net Reported By: kkobashi at comcast dot net -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Windows XP PHP Version: 4.3.10 New Comment: Check that you change the right php.ini and restart your web server. Ask support questions in the support forums. Previous Comments: ------------------------------------------------------------------------ [2005-04-11 11:38:03] kkobashi at comcast dot net Description: ------------ No matter what value I set error_reporting in the INI file, the php function error_reporting() always returns 2047 (E_ALL). When PHP starts up, shouldn't it read the INI file's error_reporting setting? Then set the current value to this? Reproduce code: --------------- // one liner echo error_reporting(); Expected result: ---------------- Expected result is what is the current value in the PHP.INI file setting. Actual result: -------------- 2047 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32668&edit=1

« previous php.bugs (#76634) next »