Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15466 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19846 invoked by uid 1010); 16 Mar 2005 18:03:19 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 19831 invoked from network); 16 Mar 2005 18:03:19 -0000 Received: from unknown (HELO artsgloucester.com) (127.0.0.1) by localhost with SMTP; 16 Mar 2005 18:03:19 -0000 X-Host-Fingerprint: 80.203.117.5 5.80-203-117.nextgentel.com Linux 2.4/2.6 Received: from ([80.203.117.5:61361] helo=kirin.trondheim.corp.yahoo.com) by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP id 8B/C0-03551-6E478324 for ; Wed, 16 Mar 2005 13:03:19 -0500 Received: from kirin.trondheim.corp.yahoo.com (dev.search.yahoo.com [127.0.0.1]) by kirin.trondheim.corp.yahoo.com (8.12.8/8.12.8) with ESMTP id j2GH6eqm001960; Wed, 16 Mar 2005 18:06:40 +0100 Received: from localhost (stig@localhost) by kirin.trondheim.corp.yahoo.com (8.12.8/8.12.8/Submit) with ESMTP id j2GH6cLN001956; Wed, 16 Mar 2005 18:06:40 +0100 Date: Wed, 16 Mar 2005 18:06:37 +0100 (CET) X-X-Sender: stig@kirin.trondheim.corp.yahoo.com To: Lukas Smith cc: internals@lists.php.net In-Reply-To: <20050316085836.76914.qmail@lists.php.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] __autoload() From: stig@stigbakken.com ("Stig S. Bakken") References: <20050316085836.76914.qmail@lists.php.net> On Wed, 16 Mar 2005, Lukas Smith wrote: > Hi, > > would it be possible to allow people to override the fixed name of > __autoload() to a user defined function (static method?). I think this > would be much more flexible and would probably also make it easier to > exploit __autoload() inside class libraries. Especially as users are > likely to use code from different class libraries. > > Seems like a nice little addition for PHP 5.1 ... [un]register_class_autoload_function() would be even more useful. - Stig