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

From: Date: Tue, 24 Feb 2015 19:38:41 +0000
Subject: Re: [RFC][VOTE] Improve array to string conversion
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-83691@lists.php.net to get a copy of this message
There are many cases where applications are not transactions safe, e.g. calling multiple external interfaces via soap, json, xml, etc. If the application suddenly stops between two external calls - where it could not stop before - you get unexpected behavior. Leigh wrote on 24.02.2015 20:29: > 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. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.internals (#83691) next »