Re: [PATCH] Notice on array to string convertion
| From: | Patrick ALLAERT | Date: | Mon, 17 Oct 2011 13:01:46 +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-55841@lists.php.net to get a copy of this message | ||
2011/6/20 Patrick ALLAERT <patrickallaert@php.net>:
> 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?
*bump*
> Thanks in advance,
> Patrick