#25866 [Bgs]: Using error_reporting() function don't change output of phpinfo() function
| From: | sfournier at dmsolutions dot ca | Date: | Tue, 14 Oct 2003 16:41:29 +0000 |
| Subject: | #25866 [Bgs]: Using error_reporting() function don't change output of phpinfo() function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-48993@lists.php.net to get a copy of this message | ||
ID: 25866
User updated by: sfournier at dmsolutions dot ca
Reported By: sfournier at dmsolutions dot ca
Status: Bogus
Bug Type: PHP options/info functions
Operating System: Linux
PHP Version: 4.3.3
New Comment:
Oh. Ok my bad. So the local is the runtime and master is the value from
the ini. Right ?
Previous Comments:
------------------------------------------------------------------------
[2003-10-14 12:31:13] sniper@php.net
First is the local value, second is master.
error_reporting => 1 => 2047
(local being the runtime value..)
------------------------------------------------------------------------
[2003-10-14 12:28:34] sniper@php.net
It's showing the INI setting, that's totally different than a runtime
setting.
------------------------------------------------------------------------
[2003-10-14 12:26:40] 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(); ?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25866&edit=1