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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Wed May 01 14:01:31 2024 UTC