Bug #16137: ini_set / error_reporting inconsistence

From: Date: Mon, 18 Mar 2002 09:20:46 +0000
Subject: Bug #16137: ini_set / error_reporting inconsistence
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-2735@lists.php.net to get a copy of this message
From: goba@php.net Operating system: win2k PHP version: 4.1.0 PHP Bug Type: PHP options/info functions Bug description: ini_set / error_reporting inconsistence Consider the code below, with error_repoting set to E_ALL (2047) before the script start: <?php $prev = error_reporting(); error_reporting(2046); $new = error_reporting(); echo $prev . " -> " . $new; //ini_set("error_reporting", $new); phpinfo(); ?> This would set the error_reporting to 2046, as returned and injected to the $new variable. BUT phpinfo() will present 2047 as the local value, instead of 2046. If you uncomment the ini_set() call, you get the correct 2046 in the phpindo() output. So error_repoting(..) and ini_set("error_reporting"..) are not the same ;(( -- Edit bug report at http://bugs.php.net/?id=16137&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16137&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16137&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16137&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16137&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16137&r=support Expected behavior: http://bugs.php.net/fix.php?id=16137&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16137&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16137&r=submittedtwice

« previous php.bugs (#2735) next »