Re: RE : RE : Namespaces and __autoload()

From: Date: Thu, 13 Sep 2007 17:17:10 +0000
Subject: Re: RE : RE : Namespaces and __autoload()
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-32313@lists.php.net to get a copy of this message
Are you sure we would need to create a new hook ? If the existing autoload handlers receive a request for a function, they search for a class with that name. Apart from a waste of time, it is harmless. We can even have BC : you just have to declare your autoload handler with an optional second argument, whose default value is 'class'. This would allow new autoload handlers to run on previous PHP versions.
Well, that might be an option too, but let's cross that bridge when we come to it :) -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#32313) next »