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 <ma...@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
> 


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

Reply via email to