Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15766 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6737 invoked by uid 1010); 3 Apr 2005 16:01:39 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 6700 invoked from network); 3 Apr 2005 16:01:39 -0000 Received: from unknown (HELO radiation.sytes.net) (127.0.0.1) by localhost with SMTP; 3 Apr 2005 16:01:39 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:34488] helo=mail.zend.com) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 30/25-19272-B4310524 for ; Sun, 03 Apr 2005 12:01:15 -0400 Received: (qmail 19372 invoked from network); 3 Apr 2005 16:01:10 -0000 Received: from localhost (HELO ANDI-NOTEBOOK.zend.com) (127.0.0.1) by localhost with SMTP; 3 Apr 2005 16:01:10 -0000 Message-ID: <5.1.0.14.2.20050403085747.02857a90@localhost> X-Sender: andi@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sun, 03 Apr 2005 09:01:02 -0700 To: Marcus Boerger ,Zeev Suraski Cc: internals@lists.php.net In-Reply-To: <14810062878.20050403113106@marcus-boerger.de> 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: andi@zend.com (Andi Gutmans) At 11:31 AM 4/3/2005 -0400, Marcus Boerger wrote: >I did not try to get it fixed i just fixed it (dot). > >Right from the beginning i said __autoload() is just wrong and we need the >described behavior. However all i got back is that i am just wrong and we >don't need it. And that from everybody. But since SPL already gives all >you mentioned there is no reason to do anything more. > >I'll come back here once i have my Montreal slides online which documnets >everthing or i may also find time to do documentation soon. Well I think the point is that you were right that the current way __autoload() works is not good enough. I don't think the right solution though is to leave the not-optimal solution in the engine, and create a solution outside the engine. I think we should find a way to tune the engine so that it works well. Zeev's suggestion keeps BC. If there are concerns as far as chaining order are concerned, I personally don't have a problem supplying an API function where functions can be added programmatically. We'd then get the best of both worlds and make it very accessible by everyone. Andi