PHP 4.0 Bug #6118: Can not supress runtime warnings on foreach
| From: | ronen at greyzone dot com | Date: | Sat, 12 Aug 2000 06:29:39 +0000 |
| Subject: | PHP 4.0 Bug #6118: Can not supress runtime warnings on foreach | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-28638@lists.php.net to get a copy of this message | ||
From: ronen@greyzone.com
Operating system: Redhat Linux 6.2
PHP version: 4.0.1pl2
PHP Bug Type: Feature/Change Request
Bug description: Can not supress runtime warnings on foreach
@foreach($items as $key => $val) {}
does not work:
<?
$test[123]="one hundred twenty three";
$test[13]="thirteen";
$test[11]="eleven";
// try to supress warnings on foreach
@foreach($test as $key => $value) {
echo "TEST[$key]=$value<br>";
}
/***** THE OUTPUT IS
Parse error: parse error in /home/httpd/brocadedocs/ronen/secure/testtest.html on line 10
****/
?>