Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43192 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44821 invoked from network); 26 Feb 2009 20:48:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Feb 2009 20:48:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.132.248 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.132.248 an-out-0708.google.com Received: from [209.85.132.248] ([209.85.132.248:21077] helo=an-out-0708.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7B/AF-30584-A2007A94 for ; Thu, 26 Feb 2009 15:48:42 -0500 Received: by an-out-0708.google.com with SMTP id c2so531945anc.38 for ; Thu, 26 Feb 2009 12:48:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=bG/BlaD7AcOGgC5VwTbPTDsjPQMJD0OXnFhGOH1eh8c=; b=HnYCiPA2yuWTA+2GSBkPWa5IYe30/Va2VpeOA0FrvKJDP8hN2o+kcVYcVeJ3khbCdX vV7lspo8CkYSPy+RLxXeDPZNCIxernqMQEQizzX0MlLEfWwyTlW/Eiy8T3nlAc7xwsQP RkFFxveSkj+VNIt4AMjEa968fAMqdjgVa2d/Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=btwZ3GsmwqadOK0qi38K0jUQ80T8ON9PScOEANWOtKHaL44pIYPa4nbesefKhmhaaI CFUsQIre51OV1rcAYewACAz8eFskTmemw/Cz7GMVKLEf0oV4WNQ98Mwsq4ng/L8BYsuY BoRfd+fHC+NeJzDbzwpl1SSljn7AVR0FxQSi8= MIME-Version: 1.0 Received: by 10.100.202.8 with SMTP id z8mr1336510anf.98.1235681320050; Thu, 26 Feb 2009 12:48:40 -0800 (PST) In-Reply-To: References: Date: Thu, 26 Feb 2009 17:48:40 -0300 Message-ID: To: viroteck@viroteck.net Cc: internals Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Class names (with regard to autoload) From: guilhermeblanco@gmail.com (Guilherme Blanco) I doubt you'll find a patch to it. Mainly, the patch will be against this principle: wro= te: > Hi all, > > I've been playing around with autoload lately, and specifically using > autoload to load classes which may be in subdirectories. I came up > with the following test script: > > > function __autoload($sName) > { > =C2=A0 =C2=A0 =C2=A0 =C2=A0echo "autoloading " . $sName . "\n"; > } > > $s =3D "Foo.Bar"; > > $a =3D new $s(); > $b =3D new Foo.Bar(); > ?> > > The first line demonstrates what I'm after ("autoloading Foo.Bar"), > and the second seems to give a bit of an odd/incorrect (in these > circumstances) result(__autoload is invoked with "Foo"). > > Is it possible to reconcile this behaviour to be a bit more > consistant, and provide the behaviour I'm after? > > I'm willing to try provide a patch, if someone would be kind enough to > direct me to the part(s) of the engine I'd need to look at. > > Thanks, > Robin > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Guilherme Blanco - Web Developer CBC - Certified Bindows Consultant Cell Phone: +55 (16) 9215-8480 MSN: guilhermeblanco@hotmail.com URL: http://blog.bisna.com S=C3=A3o Paulo - SP/Brazil