回复: [PHP-DEV] Re: bugs needs fix before 5.4.1
| From: | reeze | Date: | Sat, 31 Mar 2012 07:58:44 +0000 |
| Subject: | 回复: [PHP-DEV] Re: bugs needs fix before 5.4.1 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-59254@lists.php.net to get a copy of this message | ||
在 2012年3月31日星期六,下午3:31,Stas Malyshev 写道:
> On 3/30/12 7:27 PM, Yasuo Ohgaki wrote:
> > Hi Stas,
> >
> > Just FYI.
> > Following bugs are needed to be fixed before 5.4.1, I think.
> >
> > https://bugs.php.net/bug.php?id=61526
> > Which is right, doc or code?
>
> Both. The parameter means that first argument (object) can be a string,
> and if it is, it will be passed to autoloader to find the class. See bug
> #55475 for the discussion.
If is set to false does it means the first parameter can't be string?
Can't we just make the last parameter to autoload=true|false.
if the first parameter is a string then try to find the class if not try autoloadding.
if string will not be a String Class in 5.* I think it's ok to do like this. eg: callable and
many mixed paramter.
what do you think?
>
> >
> > https://bugs.php.net/bug.php?id=61507
> > This is worse than isset($str[0][0]) issue.
>
> Non-string offsets do not work in strings, because they don't make sense
> in strings.
> --
> 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