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

From: Date: Thu, 05 Mar 2015 22:20:11 +0000
Subject: Re: [RFC][VOTE] Improve array to string conversion
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-84363@lists.php.net to get a copy of this message
Le 23/02/2015 17:06, François Laupretre a écrit :
Starting the vote for https://wiki.php.net/rfc/array-to-string.
Hi, We talked about this with other people at AFUP and a great majority of us agrees that the current behavior of array to strings conversions is not quite useful -- and, for several of us, when we started getting notices with PHP 5.4, it actually showed us there were bugs in our applications. So, we are +1 on this. Basically, even if notices are already bringing some useful information, we feel being more "strict" and "explicit" than that might help, here. As a sidenote, an idea that was suggested a few times was that adding some kind of __toString() method on arrays could be useful in some cases -- but this goes a lot farther than this RFC... Thanks, -- Pascal MARTIN, AFUP - French UG http://php-internals.afup.org/

« previous php.internals (#84363) next »