From: sfournier at dmsolutions dot ca
Operating system: Linux
PHP version: 4.3.3
PHP Bug Type: PHP options/info functions
Bug description: Using error_reporting() function don't change output of phpinfo() function

Description:
------------
Same as [url]http://bugs.php.net/bug.php?id=18498[/url] 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 bug report at [url]http://bugs.php.net/?id=25866&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25866&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25866&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25866&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25866&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25866&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25866&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25866&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25866&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25866&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25866&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25866&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25866&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25866&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25866&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25866&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=25866&r=float[/url]