Em Thu, 02 Jun 2011 12:54:10 +0100, Hannes Magnusson
<hannes.magnus...@gmail.com> escreveu:
On Thu, Jun 2, 2011 at 12:11, Patrick ALLAERT <patrickalla...@php.net>
wrote:
I would like to introduce an E_NOTICE when an array is silently
converted to a string.
This isn't very useful as it constantly produces the following string:
"Array" and in most of the case, this is a sign of an error.
How about making it useful rather then just throwing an notice?
Recursive implode maybe? Or json/php serialized? :)
That's a much bigger BC break and can cause trouble because the elements
of the array may not be convertible to strings.
I support the E_NOTICE idea.
--
Gustavo Lopes
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php