Re: 回复: [PHP-DEV] Re: bugs needs fix before 5.4.1
| From: | Stas Malyshev | Date: | Sat, 31 Mar 2012 08:35:39 +0000 |
| Subject: | Re: 回复: [PHP-DEV] Re: bugs needs fix before 5.4.1 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-59262@lists.php.net to get a copy of this message | ||
Hi!
> If is set to false does it means the first parameter can't be string?
It can. But it won't be seen as a class name, but rather as a string,
that is not an object that is an instance of a subclass of anything, so
it will return false.
> 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.
We discussed all the solutions already and chose this one, please see
discussion on the list and the bug I've referred to. I see no point in
going through the same discussion again.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227