php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25866 Using error_reporting() function don't change output of phpinfo() function
Submitted: 2003-10-14 12:26 UTC Modified: 2003-10-14 12:41 UTC
From: sfournier at dmsolutions dot ca Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 4.3.3 OS: Linux
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: sfournier at dmsolutions dot ca
New email:
PHP Version: OS:

 

 [2003-10-14 12:26 UTC] sfournier at dmsolutions dot ca
Description:
------------
Same as http://bugs.php.net/bug.php?id=18498 but with PHP 4.3.3


My php.ini contain this line:
.
.
error_reporting  =  E_ALL & ~E_NOTICE
.
.

With this simple script the error_reporting parameter is set to 2039, wich is ok.

<? phpinfo(); ?>

Using the same php.ini, with this other script the error_reporting parameter is *still* set to 2039. Shouldn't be set to 1 ?

<? error_reporting(E_ERROR); phpinfo(); ?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-14 12:28 UTC] sniper@php.net
It's showing the INI setting, that's totally different than a runtime setting.

 [2003-10-14 12:31 UTC] sniper@php.net
First is the local value, second is master.

error_reporting => 1 => 2047

(local being the runtime value..)

 [2003-10-14 12:41 UTC] sfournier at dmsolutions dot ca
Oh. Ok my bad. So the local is the runtime and master is the value from the ini. Right ?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 05:01:27 2024 UTC