Re: [PATCH] Notice on array to string convertion
| From: | Ole Markus With | Date: | Thu, 02 Jun 2011 14:24:38 +0000 |
| Subject: | Re: [PATCH] Notice on array to string convertion | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-52777@lists.php.net to get a copy of this message | ||
On Thu, 02 Jun 2011 15:38:00 +0200, Brian Moon <brian@moonspot.net> wrote:
I would also support an E_WARNING for this; but as I mostly develop in environments where E_NOTICE issues are taken care of, E_NOTICE is fine with me. -- Ole Markus http://barelysufficient.org Gentoo/Linux - PHP HerdI like this for the current stable branch, no bc impact and gives a way to detect such mistakes (not ideal but better than nothing). On Thu, Jun 2, 2011 at 12:11 PM, Patrick ALLAERT<patrickallaert@php.net> wrote:I agree with Peirre and would actually support this as an E_WARNING. Since there is a patch for E_NOTICE already, I will take it.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.