Re: my last attempt at sanity with namespaces

From: Date: Thu, 16 Oct 2008 22:57:55 +0000
Subject: Re: my last attempt at sanity with namespaces
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-41172@lists.php.net to get a copy of this message
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. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#41172) next »