Re: 5.4 regression: non-existent sub-sub keys now have values
| From: | Rasmus Lerdorf | Date: | Thu, 24 Nov 2011 22:17:23 +0000 |
| Subject: | Re: 5.4 regression: non-existent sub-sub keys now have values | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-56600@lists.php.net to get a copy of this message | ||
On 11/24/2011 02:03 PM, Larry Garfield wrote:
> Generally $foo, bar, and baz will all be arrays, and if they're not it
> means someone else had a bug somewhere. Of course, Drupal module
> developers never have bugs in their code that accidentally puts a string
> where they should have put an array, no, not at all. :-) (Generally
> when that happens we already hit a "first argument to foreach() must be
> an array" error.)
>
> Currently we don't use ArrayAccess anywhere aside from inheriting it
> from PDO.
>
> If that doesn't change, then I rescind my previous panic attack.
Yes, no change in any of that. In your usage, the case that behaves
differently in 5.4 was actually a fatal error in 5.3, so chances are
pretty good you don't have too many of these.
-Rasmus