Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41176 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20938 invoked from network); 17 Oct 2008 00:15:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2008 00:15:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 208.83.222.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 208.83.222.18 unknown Linux 2.6 Received: from [208.83.222.18] ([208.83.222.18:37429] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A3/DC-12818-729D7F84 for ; Thu, 16 Oct 2008 20:15:36 -0400 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id 52D8694DBD7; Thu, 16 Oct 2008 17:15:26 -0700 (MST) Received: from pcp041178pcs.unl.edu (pcp041178pcs.unl.edu [129.93.124.117]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id 0C68994DAD1; Thu, 16 Oct 2008 17:15:25 -0700 (MST) Message-ID: <48F7D923.1040908@chiaraquartet.net> Date: Thu, 16 Oct 2008 19:15:31 -0500 User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070807) MIME-Version: 1.0 To: Stanislav Malyshev CC: Josh Davis , PHP Developers Mailing List References: <48F653FF.5010106@chiaraquartet.net> <48F75FA1.7020505@zend.com> <48F7AD03.1050009@chiaraquartet.net> <11c607a60810161547q71f86dc6rb2dad98d17eebf56@mail.gmail.com> <48F7C6F3.404@zend.com> In-Reply-To: <48F7C6F3.404@zend.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [PHP-DEV] my last attempt at sanity with namespaces From: greg@chiaraquartet.net (Greg Beaver) Stanislav Malyshev wrote: > Hi! > >> if ($testing) { >> use class testing::PDO; >> } else { >> use class ::PDO; >> } > > No, I don't think this would work since use is compile-time statement. use is also a top_statement, which means it cannot be inside {} at all. Greg