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

Reply via email to