From: leadaxe at gmail dot com Operating system: FreeBSD PHP version: 5.3.0 PHP Bug Type: Output Control Bug description: unset error reporting bugs
Description: ------------ You have paradox in error reporting "unset" function I thing, that logic mast be simple as in "isset" function I'm confuze by notice from this simple example. I'm always use maximum error_reporting and analyze logs and this is actual problem. Reproduce code: --------------- <? error_reporting(E_ALL); ini_set('display_errors', 1); $nonexisten = array(); unset($nonexisten); // no error unset($nonexisten); // no error unset($nonexisten[0]); // notice $nonexisten = array(0); unset($nonexisten[0]['name']); // no error ?> Expected result: ---------------- <b>Notice</b>: Undefined variable: nonexisten in <b>PHPDocument2</b> on line <b>7</b><br /> -- Edit bug report at http://bugs.php.net/?id=49109&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49109&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49109&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49109&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49109&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49109&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49109&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49109&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49109&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49109&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49109&r=support Expected behavior: http://bugs.php.net/fix.php?id=49109&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49109&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49109&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49109&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49109&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49109&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49109&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49109&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49109&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49109&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49109&r=mysqlcfg