Bug #11070: '@' does not turn off error checking in foreach()
| From: | lee at mediawaveonline dot com | Date: | Wed, 23 May 2001 22:47:55 +0000 |
| Subject: | Bug #11070: '@' does not turn off error checking in foreach() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56552@lists.php.net to get a copy of this message | ||
From: lee@mediawaveonline.com
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
lee@mediawaveonline.com
--
Edit Bug report at: http://bugs.php.net/?id=11070&edit=1