Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33980 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63746 invoked by uid 1010); 12 Dec 2007 20:39:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 63723 invoked from network); 12 Dec 2007 20:39:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Dec 2007 20:39:16 -0000 Authentication-Results: pb1.pair.com header.from=mp@webfactory.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mp@webfactory.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain webfactory.de from 195.227.108.51 cause and error) X-PHP-List-Original-Sender: mp@webfactory.de X-Host-Fingerprint: 195.227.108.51 wfserver02.wf-ppr.de Windows 2000 SP2+, XP SP1 (seldom 98 4.10.2222) Received: from [195.227.108.51] ([195.227.108.51:4163] helo=wfserver02.wf-ppr.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A5/CB-23372-EE640674 for ; Wed, 12 Dec 2007 15:39:15 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 12 Dec 2007 21:39:04 +0100 Message-ID: <00A2E2156BEE8446A81C8881AE117F199A076A@companyweb> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: AW: AW: [PHP-DEV] Namespace resolution Thread-Index: Acg86BSbTvY/95IDTKGeVsDE4CeSgQAFiTgw To: "Stanislav Malyshev" Cc: =?iso-8859-1?Q?David_Z=FClke?= , Subject: RE: AW: AW: [PHP-DEV] Namespace resolution From: mp@webfactory.de ("Matthias Pigulla") > > Just a quick idea - what if requiring that autoloaders behave=20 > > deterministically, that is, once a certain autoloader=20 > > implementation=20 > > has been given the possibility to find a class it will=20 > > never be asked=20 > > again (because it wouldn't find it later on either). >=20 > I'm not sure if it's a correct assumption to make in general case -=20 > files can be created. Currently, when an autoload handler is given the chance to load a class = and it does not, maybe another handler will do. Either way, the script = will terminate if no handler can find the class or the class will be = available after that - so already now it is impossible that any given = handler is called twice during the same execution for the same class = name. Maybe I'm missing some weird cases for opcode caches or otherwise = embedded PHP though? -mp.