Re: PHP 4.0 Bug #6118 Updated: Can not supress runtime warnings on foreach
| From: | Stanislav Malyshev | Date: | Fri, 11 Aug 2000 19:09:10 +0000 |
| Subject: | Re: PHP 4.0 Bug #6118 Updated: Can not supress runtime warnings on foreach | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-28647@lists.php.net to get a copy of this message | ||
RB>> Excuse me, but what you are saying makes absolutely no sense.
That's what students often say to Zen master ;))
RB>> The manual CLEARLY states that errors can be supressed, but obviouly
RB>> foreach is an exception to this rule. THIS IS THE BUG - the fact that we
RB>> have a function behaving in a unique, contrary fashion to the others.
RB>> Therefore, this IS a valid bug.
Well, foreach isn't an expression. foreach is control structure. While
@foreach might be nice, in is not in current PHP, meaning it's not a
bug.
BUT, this is a valid feature request, IMHO - so it should be reopened.
--
Stanislav Malyshev stas@zend.com
+972-3-6139665 ext.106