Re: [DRAFT] [RFC] Function autoloading
| From: | Stas Malyshev | Date: | Fri, 30 Aug 2013 17:19:06 +0000 |
| Subject: | Re: [DRAFT] [RFC] Function autoloading | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68741@lists.php.net to get a copy of this message | ||
Hi!
> So nothing changes from present (at all) unless a function is not
> defined. Today, that's an error case. So the only performance change
> occurs if zend_hash_find (which is already there) returns FAILURE. THEN
> the logic which includes autoloading would run.
I see a number of places where hash lookup is replaced with
zend_lookup_function, not with the macro. Moreover, zend_lookup_function
for some reason copies and lowercases the argument, even though for hash
lookup it should already be lowercased.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227