[PHP-DEV] Bug #60149 - SPL autoloader not called in error handler triggered by private __call

2011-10-30 Thread Paul Dragoonis
I've done a fair amount of reading on how zend_do_begin_function_declaration slots into the PHP puzzle. I would like to know if partly the reason this occurs is because, the class/function declarations are evaluated before set_error_handler is evaluated and thus the zend_error() is handled normally

Re: [PHP-DEV] Re: [PATCH] Notice on array to string convertion

2011-10-30 Thread Laruence
Hi: Actually, I only know two , one is in ext/reflection and another is 60174 I just fixed 60174 , but if there comes a new argument to zend_make_printable_zval , I will re-fix this . thanks 2011/10/31 Stas Malyshev : > Hi! > >> Hi: >>   like the following script: >>   > $str = (string)array(

Re: [PHP-DEV] Re: [PATCH] Notice on array to string convertion

2011-10-30 Thread Stas Malyshev
Hi! Hi: like the following script: I think it's the correct way to react for PHP. This code is an extremely convoluted way to write "echo 'Array';" and as such doesn't seem to do anything useful. I have yet to see one single instance where converting array to string made any sense. Of

Re: [PHP-DEV] Re: [PATCH] Notice on array to string convertion

2011-10-30 Thread Paul Dragoonis
On Mon, Oct 31, 2011 at 2:36 AM, Laruence wrote: > Paul: >    sure,  there is some usage in ext/reflection and what was said in > the bug report. > >    so if there is no a argument to suppress it,  these codes  have to > change to something like: understood. indeed doesn't seem quite right. On

Re: [PHP-DEV] Re: [PATCH] Notice on array to string convertion

2011-10-30 Thread Laruence
Paul: sure, there is some usage in ext/reflection and what was said in the bug report. so if there is no a argument to suppress it, these codes have to change to something like: if (Z_TYPE_P(val) == IS_ARRAY) { } else { zend_make_printable_zval.. } which is ugly.

Re: [PHP-DEV] Re: [PATCH] Notice on array to string convertion

2011-10-30 Thread Paul Dragoonis
On Sun, Oct 30, 2011 at 1:23 PM, Laruence wrote: > s /second/third/ Laurence, What Jordi was saying was that in a production environment is there any justified reason why you'd want to convert an array into a string, otherwise it's a good thing that it reports you "Array to string" as you've pro

Re: [PHP-DEV] Re: [PATCH] Notice on array to string convertion

2011-10-30 Thread Laruence
s /second/third/ 2011/10/30 Laruence : > Hi: >    I don't think this(you think there is no use) can used for the > reason to do such a change. > >    actully I ask for a sencond argument for  zend_make_printable_zval >  to suppress the warning *intentionally*. > > thanks > > 2011/10/30 Jordi Boggi

Re: [PHP-DEV] Re: [PATCH] Notice on array to string convertion

2011-10-30 Thread Laruence
Hi: I don't think this(you think there is no use) can used for the reason to do such a change. actully I ask for a sencond argument for zend_make_printable_zval to suppress the warning *intentionally*. thanks 2011/10/30 Jordi Boggiano : > On 30.10.2011 13:19, Laruence wrote: >> Hi: >>

Re: [PHP-DEV] Re: [PATCH] Notice on array to string convertion

2011-10-30 Thread Jordi Boggiano
On 30.10.2011 13:19, Laruence wrote: > Hi: > like the following script: >$str = (string)array(); > echo $str; > >it is obviously intentionally convert a array to string , but the > warning is coming: It is obviously intentional but also obviously pointless. You might as well just echo

Re: [PHP-DEV] Re: [PATCH] Notice on array to string convertion

2011-10-30 Thread Laruence
Hi: like the following script: : > here is the report #60174 > > thanks > > 2011/10/30 Laruence : >> 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

Re: [PHP-DEV] Re: [PATCH] Notice on array to string convertion

2011-10-30 Thread Laruence
here is the report #60174 thanks 2011/10/30 Laruence : > 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_zv

Re: [PHP-DEV] Re: [PATCH] Notice on array to string convertion

2011-10-30 Thread Laruence
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 mayb