#27731 [NEW]: @ and error_reporing

From: Date: Sat, 27 Mar 2004 14:59:04 +0000
Subject: #27731 [NEW]: @ and error_reporing
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56948@lists.php.net to get a copy of this message
From: se at ksu dot ru Operating system: Windows PHP version: 4.3.4 PHP Bug Type: Unknown/Other Function Bug description: @ and error_reporing Description: ------------ Try to execute: error_reporting(E_ALL ^ E_NOTICE); if (!$a++) @include __FILE__; else error_reporting(0); var_dump(error_reporting()); Then remove '@' and try once again. Compare results. I think it is bug. Reproduce code: --------------- error_reporting(E_ALL ^ E_NOTICE); if (!$a++) @include __FILE__; else error_reporting(0); var_dump(error_reporting()); Expected result: ---------------- int(0) int(0) Actual result: -------------- int(0) int(2039) -- Edit bug report at http://bugs.php.net/?id=27731&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27731&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27731&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27731&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27731&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27731&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27731&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27731&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27731&r=support Expected behavior: http://bugs.php.net/fix.php?id=27731&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27731&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27731&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27731&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27731&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27731&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27731&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27731&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27731&r=float

« previous php.bugs (#56948) next »