On 2011-06-02, 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.
>
> Let me know about your feelings.

+1 (for E_NOTICE)

This allows warning folks easily during development of potential issues,
and for those of us using tools like PHPUnit, we'll catch the problem
early. At the same time, it doesn't break existing code.

-- 
Matthew Weier O'Phinney
Project Lead            | matt...@zend.com
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

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

Reply via email to