From: [EMAIL PROTECTED]
Operating system: linux
PHP version: 4.0.5
PHP Bug Type: Feature/Change Request
Bug description: '@' does not turn off error checking in foreach()
it would be nice to see the '@' turn off error reporting on the foreach() command. ie.
<?php
foreach($test as $pos => $val)
{
}
?>
gives an error because $test is not set.
<?php
foreach(@$test as $pos => $val)
{
}
?>
gives an error because its the wrong data type.
<?php
@foreach($test as $pos => $val)
{
}
?>
gives a syntax error. it would be nice if this last command worked :)
Chris Lee
[EMAIL PROTECTED]
--
Edit Bug report at: http://bugs.php.net/?id=11070&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]