Re: [PATCH] Notice on array to string convertion
| From: | Hannes Magnusson | Date: | Thu, 02 Jun 2011 11:54:10 +0000 |
| Subject: | Re: [PATCH] Notice on array to string convertion | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52758@lists.php.net to get a copy of this message | ||
On Thu, Jun 2, 2011 at 12:11, Patrick ALLAERT <patrickallaert@php.net> wrote:
> Hi,
>
> 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? :)
-Hannes