Re: [PHP-DEV] ArrayAccess: Constant numeric string offsets become integers

2017-07-07 Thread Sara Golemon
On Fri, Jul 7, 2017 at 7:30 PM, Rudi Theunissen wrote: > Bug: https://bugs.php.net/bug.php?id=63217 > PR: https://github.com/php/php-src/pull/2607 > Demo: https://3v4l.org/dagUP > > We should either go full array behaviour, or full array syntax only. The > numeric string optimisation that cause

[PHP-DEV] ArrayAccess: Constant numeric string offsets become integers

2017-07-07 Thread Rudi Theunissen
Bug: https://bugs.php.net/bug.php?id=63217 PR: https://github.com/php/php-src/pull/2607 Demo: https://3v4l.org/dagUP I've heard mixed responses to this bug and the approach to fix it (or whether we should at all). The two common opinions are that ArrayAccess should behave exactly like an array,