From: [EMAIL PROTECTED]
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
--
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]