Re: [RFC][VOTE] Improve array to string conversion

From: Date: Tue, 24 Feb 2015 19:29:37 +0000
Subject: Re: [RFC][VOTE] Improve array to string conversion
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-83689@lists.php.net to get a copy of this message
On 24 February 2015 at 19:23, Thomas Bley <mails@thomasbley.de> wrote: > I think this is a huge bc break that will affect many applications. For example: > > // test.php > error_reporting(E_ALL & ~E_NOTICE); > echo $_GET['value']; > > curl http://.../test.php?value=foo // ok > curl http://.../test.php?value[0]=foo&value[1]=bar // > application continues with E_NOTICE > curl http://.../test.php?value[0]=foo&value[1]=bar // > application stops with E_RECOVERABLE_ERROR While this is true I think in this particular case if you're doing array to string conversion somewhere, your application probably isn't doing what you think it's doing. I think it's better to prevent unhelpful and unexpected behaviour than to carry on silently.

« previous php.internals (#83689) next »