php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32668 Setting error_reporting in PHP.INI has no effect
Submitted: 2005-04-11 11:38 UTC Modified: 2005-04-11 11:59 UTC
From: kkobashi at comcast dot net Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.3.10 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kkobashi at comcast dot net
New email:
PHP Version: OS:

 

 [2005-04-11 11:38 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-11 11:59 UTC] johannes@php.net
Check that you change the right php.ini and restart your 
web server. Ask support questions in the support forums. 
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 09 00:00:02 2025 UTC