Re: foreach behavior and error suppression (@foo)
If the question is about
@foreach(...) ...
Then the answer is somewhere between 'hell no!' and 'not possible with the current state of the code'. foreach is a statement, whereas @ is an operator that works on expressions...
At 00:16 3/7/2001, Daniel Beckham wrote:
There are several open feature requests in the bug system to allow the use
of @ to suppress warnings when using a non array with foreach. What's the
status of this? Is this a "hell no!", "not possible with the current state
of the code" or a "when we get around to it"?
Thanks,
Daniel
--
PHP Development Mailing List <
http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
For additional commands, e-mail: php-dev-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Zeev Suraski <zeev@zend.com>
CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/
Thread (9 messages)