Re: Re: [PATCH] Notice on array to string convertion
| From: | Laruence | Date: | Sun, 30 Oct 2011 12:19:29 +0000 |
| Subject: | Re: Re: [PATCH] Notice on array to string convertion | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-55992@lists.php.net to get a copy of this message | ||
Hi:
like the following script:
<?php
$str = (string)array();
echo $str;
it is obviously intentionally convert a array to string , but the
warning is coming:
PHP Notice: Array to string conversion in /tmp/1.php on line 2
so I think maybe this change is a little radical,
thanks
2011/10/30 Laruence <laruence@php.net>:
> here is the report #60174
>
> thanks
>
> 2011/10/30 Laruence <laruence@php.net>:
>> Hi:
>> there is a bug report about this new change.
>>
>> I found that there has added a notice to zend_make_printable_zval
>> and without any parameter to suppress the warning.
>>
>> I think this is very bad, since zend_make_printable_zval is used
>> in internal when need to print some infos.
>>
>> so maybe we should revert the change in zend_make_printable_zval ?
>> or add a parameter to suppress the warning when it is intentionally
>> to.
>>
>> thanks
>>
>> 2011/10/19 Stas Malyshev <smalyshev@sugarcrm.com>:
>>> Hi!
>>>
>>> On 10/18/11 11:28 PM, Patrick ALLAERT wrote:
>>>>
>>>> I have not enough karma to change Zend/zend.c.
>>>> Could you solve this please?
>>>>
>>>> Once solved I can push this to trunk and PHP_5_4.
>>>
>>> If you send me the patch I can apply it.
>>>
>>>
>>> --
>>> Stanislav Malyshev, Software Architect
>>> SugarCRM: http://www.sugarcrm.com/
>>> (408)454-6900 ext. 227
>>>
>>> --
>>> PHP Internals - PHP Runtime Development Mailing List
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>
>>
>>
>> --
>> Laruence Xinchen Hui
>> http://www.laruence.com/
>>
>
>
>
> --
> Laruence Xinchen Hui
> http://www.laruence.com/
>
--
Laruence Xinchen Hui
http://www.laruence.com/