Bug #14066: Can't suppress warnigns on accessing invalid string offset

From: Date: Thu, 15 Nov 2001 07:33:34 +0000
Subject: Bug #14066: Can't suppress warnigns on accessing invalid string offset
Groups: php.dev 
Request: Send a blank email to php-dev+get-70521@lists.php.net to get a copy of this message
From: mfischer@guru.josefine.at Operating system: Any PHP version: 4.0CVS-2001-11-15 PHP Bug Type: Scripting Engine problem Bug description: Can't suppress warnigns on accessing invalid string offset 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 bug report at: http://bugs.php.net/?id=14066&edit=1

« previous php.dev (#70521) next »