From: oleg at e-kazan dot ru
Operating system: Linux RedHat 8.0
PHP version: 4.3.6RC1
PHP Bug Type: Unknown/Other Function
Bug description: error_reporting sets to 0 after @
Description:
------------
error_reporting sets to 0 after @
Reproduce code:
---------------
<?
error_reporting(E_ALL);
function a()
{
@$a = 1;
};
var_dump(error_reporting());
a();
var_dump(error_reporting());
?>
Expected result:
----------------
int(2047)
int(2047)
Actual result:
--------------
int(2047)
int(0)
--
Edit bug report at http://bugs.php.net/?id=27877&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27877&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27877&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27877&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27877&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27877&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27877&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27877&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27877&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27877&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27877&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27877&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27877&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27877&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27877&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27877&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27877&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27877&r=float