Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41171 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95733 invoked from network); 16 Oct 2008 22:48:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Oct 2008 22:48:00 -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:19756] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/A7-12818-0A4C7F84 for ; Thu, 16 Oct 2008 18:48:00 -0400 Received: by rv-out-0506.google.com with SMTP id g37so237576rvb.23 for ; Thu, 16 Oct 2008 15:47:57 -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=/nfrSFz86gTEEb4JVn5pCP+GWuPinb/Pxm/1FL4okJQ=; b=N/FYVJ3dt7XOXbuZj07HocIALiROiFntXUSJ7gj6nLkNcBNAQw06PzoEakLQlHICg9 f2xwowsCFK4yhD6fXmnxKUqlCYO3hjYRVNxzV72Dmqx8WFzpBywhFd47pxkQXY+TV33F PFcbIQX3JeU9KDaEoIX5p8504ZSRoI+L6+eaY= 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=WNwcNk+ViG2E3vae42n+rATIll3Oj70V5BcOjkChdkaQaVzIeX7lVNiSRGGGPZMB9M yzvtjo1d+Axtv78sf1c+dfx+cQoht8oO+l8r2axhMKJ0cbkfx1OZczztxsyKtFsr/srk 1Ag258n8V3o+QvU3dkX0Pp17bRAW9caBtZi+A= Received: by 10.140.147.5 with SMTP id u5mr2020847rvd.274.1224197277649; Thu, 16 Oct 2008 15:47:57 -0700 (PDT) Received: by 10.141.83.21 with HTTP; Thu, 16 Oct 2008 15:47:57 -0700 (PDT) Message-ID: <11c607a60810161547q71f86dc6rb2dad98d17eebf56@mail.gmail.com> Date: Fri, 17 Oct 2008 00:47:57 +0200 To: "Greg Beaver" Cc: "PHP Developers Mailing List" In-Reply-To: <48F7AD03.1050009@chiaraquartet.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48F653FF.5010106@chiaraquartet.net> <48F75FA1.7020505@zend.com> <48F7AD03.1050009@chiaraquartet.net> Subject: Re: [PHP-DEV] my last attempt at sanity with namespaces From: phpwnd@gmail.com ("Josh Davis") I have a question about 3. Where in a script can you use the "use" statement? Could it be used inside conditionals? For example, if ($testing) { use class testing::PDO; } else { use class ::PDO; } If that's the case, could we have a word from an opcode cache guru about how nice it would play with them? Also, could you please give us a couple of examples of code that would trigger the E_WARNING mentionned in case of ambiguity and how that ambiguity would be resolved? Thanks in advance. JD