Re: [PATCH] Notice on array to string convertion
| From: | Derick Rethans | Date: | Fri, 03 Jun 2011 07:57:59 +0000 |
| Subject: | Re: [PATCH] Notice on array to string convertion | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52841@lists.php.net to get a copy of this message | ||
On Thu, 2 Jun 2011, Ilia Alshanetsky wrote:
> I like the idea of an error message when this happens, but as few
> other people in the thread had mentioned, I think it should be a
> warning (E_WARNING) because the conversion results in data loss
> (content of the array is replaced with "Array" string).
Yup, E_WARNING sounds best to me too.
Derick