Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43194 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82544 invoked from network); 26 Feb 2009 21:51:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Feb 2009 21:51:44 -0000 Authentication-Results: pb1.pair.com header.from=surreal.w00t@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=surreal.w00t@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.180 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: surreal.w00t@gmail.com X-Host-Fingerprint: 209.85.218.180 mail-bw0-f180.google.com Received: from [209.85.218.180] ([209.85.218.180:55497] helo=mail-bw0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/08-30584-EEE07A94 for ; Thu, 26 Feb 2009 16:51:43 -0500 Received: by bwz28 with SMTP id 28so816635bwz.23 for ; Thu, 26 Feb 2009 13:51:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=uHAKs5EDTCnVz/MPkpRSRumo+AortM451w580vG28Dk=; b=eHn2rBOdxRcTj9PxOCkfOYdcVMY8IQClPAUAEgk2QIE1udKEvcflqPGSjxQ3Cupp/X sFY9eEn9wAKqYn0Mac3K9jKHvDMvid71tWVyI1j0JAAT4yY/WoYkfVJh1wLFbse6Uzpw ARUr8fEbsdoNj7P5vZPYgIeO4r9zfEat4vMf4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=fq0arhoPIcK2VDEZKld5NvqzS+WiPobZU8aoMQFqn0j+NwzseyQrQ42TW8MT+dpbSE eXGeuYwmuFD5DzgO8hzPTLgHBsR8eX7Gt749ZO0Al86q3ujW7+8gmZFMCtFXj6mL2eEW m7J47k1gZ/i83IsCiGEP+7oG4FK1EeyolNVTo= MIME-Version: 1.0 Sender: surreal.w00t@gmail.com Reply-To: viroteck@viroteck.net Received: by 10.181.197.5 with SMTP id z5mr314191bkp.6.1235685100049; Thu, 26 Feb 2009 13:51:40 -0800 (PST) In-Reply-To: References: Date: Thu, 26 Feb 2009 21:51:39 +0000 X-Google-Sender-Auth: b1a85eceaa1b3443 Message-ID: To: Guilherme Blanco Cc: internals Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Class names (with regard to autoload) From: viroteck@viroteck.net (Robin Burchell) On Thu, Feb 26, 2009 at 8:48 PM, Guilherme Blanco wrote: > I doubt you'll find a patch to it. > > Mainly, the patch will be against this principle: > Hmm, that wouldn't actually have an impact, as (at least, what I'm aiming for/wanting to do) is not to introduce periods as valid in actual class names, but to allow them to be used for autoloading - so I can have something like this (abbreviated terribly, apologies): function __autoload($sFoo) { include(str_replace(".", "/", $sFoo)); } .. so, your example would expand to Foo.Bar, which given that periods aren't allowed in a class name doesn't exist as a class, and won't work. Unless I'm missing something? Actually, I don't believe that expanding is even done - i.e. it doesn't respect defines there Seems that way on testing, too: class FooBar { // ... } define('Part', 'Foo'); define('SubPart', 'Bar'); $fb = new Part.SubPart(); gives: Fatal error: Class 'Part' not found .. but that part of things is a going off on a bit of a tangent.