Re: 7.2 behavior break, Bug #74836 isset on zero-prefixed numeric indexes in array broken

From: Date: Mon, 03 Jul 2017 07:11:09 +0000
Subject: Re: 7.2 behavior break, Bug #74836 isset on zero-prefixed numeric indexes in array broken
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-99700@lists.php.net to get a copy of this message
Am 03.07.2017 um 09:03 schrieb Dmitry Stogov <dmitry@zend.com<mailto:dmitry@zend.com>>: Hi, Please take a look at https://bugs.php.net/bug.php?id=74836 What is the best option to fix this? The most consistent way, from my point of view - disabling zero-prefexed numeric strings in all cases, but this is a new behavior break. Thanks. Dmitry. Hey, yep, it's probably best to allow only reversible string->integer conversions here. We also shall then emit an E_NOTICE error, just like on normal arrays. I see no reason to let invalid indices just silently pass on strings. Bob

« previous php.internals (#99700) next »