Re: [PATCH] Notice on array to string convertion
| From: | Patrick ALLAERT | Date: | Mon, 20 Jun 2011 18:22:00 +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-53444@lists.php.net to get a copy of this message | ||
2011/6/2 Patrick ALLAERT <patrickallaert@php.net>:
> 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
Final patch to be committed is at: https://gist.github.com/1036136 (git diff)
Please, apply it on trunk or increase my karma to do it (Access
denied: Insufficient karma for patrickallaert to
php/php-src/trunk/Zend/zend.c.), thanks.
@Stas, DSP
Would you agree to merge this into PHP 5.4?
Thanks in advance,
Patrick