Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41486 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34823 invoked from network); 27 Oct 2008 21:22:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Oct 2008 21:22:24 -0000 Authentication-Results: pb1.pair.com header.from=phpwnd@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=phpwnd@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.237 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: phpwnd@gmail.com X-Host-Fingerprint: 209.85.198.237 rv-out-0506.google.com Received: from [209.85.198.237] ([209.85.198.237:31027] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1A/BF-34199-01136094 for ; Mon, 27 Oct 2008 16:22:24 -0500 Received: by rv-out-0506.google.com with SMTP id g37so2455504rvb.23 for ; Mon, 27 Oct 2008 14:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=tT8ty+672v3DDKD/RqJu3EK3XdWksXMJjjBhAx1g5Hw=; b=JBzbJmc50LSg4nm6+mpKDq9wJMF2dkNDlUrndaEtwvQZAiQ5hVn0fiDzIJW045RKwK fl1R1M4hkdT9O6TmBmWZAmh24az82Zraci7/d6nyjCenh30104WF4ltSavg8Z+y/VC3C ZuTYyPPZQRu+Iv0kTkUkWdyBgNtQYga2SMLvo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Iy/kotv4nzwEBaKEABX8k1pYkFsW7sC/AjSasvxnEsH+6RB3W/no8wAGAxKe/5gzXk L96z4eGDlr2JY3+m285rxtdiO7DlU8GgxV6ibYuSlmypXL0HwrGAaVu90rP0cNlynMHb dzc493aR0D6Qrv3HY2qetWI3pX5bHDMgWBGGI= Received: by 10.140.143.9 with SMTP id q9mr3512476rvd.213.1225142541595; Mon, 27 Oct 2008 14:22:21 -0700 (PDT) Received: by 10.141.83.21 with HTTP; Mon, 27 Oct 2008 14:22:21 -0700 (PDT) Message-ID: <11c607a60810271422l68949427pe31786275b0b152c@mail.gmail.com> Date: Mon, 27 Oct 2008 22:22:21 +0100 To: "Stanislav Malyshev" Cc: "Rodrigo Saboya" , internals@lists.php.net In-Reply-To: <490628DB.9060209@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <49048EC1.9060908@chiaraquartet.net> <4905EDA9.9050301@zend.com> <11c607a60810271049y419c252q7e21cde9221f1996@mail.gmail.com> <490600CD.5020207@zend.com> <11c607a60810271252r4bedeea8q59ce5423891d8e59@mail.gmail.com> <49061E01.8060503@zend.com> <11c607a60810271344i1a8cf53fl149447ad2f687f99@mail.gmail.com> <490628DB.9060209@zend.com> Subject: Re: [PHP-DEV] namespace separator and whining From: phpwnd@gmail.com ("Josh Davis") 2008/10/27 Stanislav Malyshev : > 1) check for namespaced\classname > 2) try to autoload namespaced\classname > 3) fail Ok, that makes some sense wrt your position, which I originally interpreted as namespace/internal/autoload. You want to force users to use the full name at all times. IOW, you want to sacrifice convenience for performance. On the upside, no ambiguity whatsoever. "new Foo" is always a namespaced class. The downside is that it makes it harder for users to copy/paste code from current tutorials and examples, they will have to fix the class names. Also, a few people will probably regret not being able to auto-magically override some internal classes (e.g. override PDO to log queries and what not) and it will probably increase the amount of complaints about peppering one's code with backslashes. >> ...but didn't you say "one time is enough"? According to your own >> logic, include is a "performance bomb" as well. > > You seem to not understand how bytecode caches work. With bytecode caches, > you can have zeto disk accesses per request. I didn't know that bytecode caches could optimize includes with relative paths...