Re: PHP 5 Question about OO

From: Date: Wed, 01 Jun 2005 10:53:22 +0000
Subject: Re: PHP 5 Question about OO
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-216140@lists.php.net to get a copy of this message
On 1 Jun 2005, at 11:38, Jochem Maas wrote:
all true, now imagine that you install a couple of 3rdparty php5 'packages' and they all define __autoload() - ain't gonna work! which is why there has been discussion on internals regarding the possibility of use a handler-function stack for autoloading (in the same way that you can register a stack of input/output filter-function)... something to keep an eye on in case things change :-)
I've run into this one. One way that would work for me (and initially it's how I assumed it worked) is for __autoload to be a standard class method like __construct, so that a class would attempt to run its own autoloader before breaking out to the global function namespace. Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture marcus@synchromedia.co.uk | http://www.synchromedia.co.uk

« previous php.general (#216140) next »