Re: foreach with null
| From: | Andi Gutmans | Date: | Fri, 28 Oct 2005 05:09:16 +0000 |
| Subject: | Re: foreach with null | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-19774@lists.php.net to get a copy of this message | ||
I think we should be keeping the warning (i.e. -1 for the change).
I don't see a reason why overloaded objects can't expose an API of an empty array() instead of changing this behavior to fit the implementation. But even if it weren't so, there has to be a good reason to change the general case.
Andi