Hi!

The only case where the 5.4 branch works differently as before if you
reference a string type(int, float, etc. won't trigger this) variable
using an associative index and you expect it that to be undefined
variable even though that the documentation explicitly states that the

Actually, the only change 5.4 did was to make $a['foo']['bar'] work like ($a['foo'])['bar'] - i.e. chained offsets work the same way as if they were applied separately. That's it. All the rest has been there since forever. I can't see how one could argue it should stay this way.

Now I'm sorry somebody used the fact that chained offsets didn't work to do a check "do we have any strings there" but that's not how PHP is supposed to work and it's clearly a side-effect of a bug.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to