Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15746 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42389 invoked by uid 1010); 3 Apr 2005 12:22:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 42374 invoked from network); 3 Apr 2005 12:22:50 -0000 Received: from unknown (HELO zend.com) (127.0.0.1) by localhost with SMTP; 3 Apr 2005 12:22:50 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:43615] helo=mail.zend.com) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id F3/F8-19272-810EF424 for ; Sun, 03 Apr 2005 08:22:49 -0400 Received: (qmail 2723 invoked from network); 3 Apr 2005 12:22:44 -0000 Received: from localhost (HELO zeev-notebook.zend.com) (127.0.0.1) by localhost with SMTP; 3 Apr 2005 12:22:44 -0000 Message-ID: <5.1.0.14.2.20050403142132.08d09650@localhost> X-Sender: zeev@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sun, 03 Apr 2005 14:22:58 +0300 To: Andrey Hristov Cc: internals@lists.php.net In-Reply-To: <424FDF15.5040100@hristov.com> References: <5.1.0.14.2.20050403125628.03f83de0@localhost> <5.1.0.14.2.20050403125628.03f83de0@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] __autoload() enhancement From: zeev@zend.com (Zeev Suraski) At 15:18 03/04/2005, Andrey Hristov wrote: > Hi Zeev, >the idea one __autoload() may not be capable of loading therefore the next >one in the chain should be executed to try to load/define the needed code. >bool(false) returned from __autoload() means try with the next in the chain, >bool(true) everything went fine skip the rest of the queue. What I had in mind (primarily to maintain downwards compatibility), is that the engine will check whether the class exists after each call to an autload() callback. If it exists - control returns to the script. If it doesn't - the next autoload() is called. That way we don't need to rely on return values. Either way, though, the order shouldn't matter... Zeev