[PATCH] Notice on array to string convertion
| From: | Patrick ALLAERT | Date: | Thu, 02 Jun 2011 10:19:36 +0000 |
| Subject: | [PATCH] Notice on array to string convertion | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52745@lists.php.net to get a copy of this message | ||
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.
Let me know about your feelings.
Patch implementing that behavior change: https://gist.github.com/1004203
Patch to adapt the tests: https://gist.github.com/1004204
Cheers,
Patrick