ID: 14066 Updated by: phanto Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: Any PHP Version: 4.0CVS-2001-11-15 New Comment:
'isset($foo[0])' issues a warning too if $foo is an emtpy string. Previous Comments: ------------------------------------------------------------------------ [2001-11-15 02:33:34] [EMAIL PROTECTED] When setting error_reporting(E_ALL) the following occurs: <? error_reporting(E_ALL); $foo = array(); echo $foo[0] . "\n"; // <-- warning $foo = array(); echo @$foo[0]. "\n"; // <-- no warning $foo = "foo"; echo $foo{3} . "\n"; // <-- warning $foo = "foo"; echo @$foo{3}. "\n"; // <-- still warning ?> The last line should not emit a warning. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14066&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]