|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-30 15:07 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 20:00:01 2025 UTC |
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 />