Re: AW: [PHP-DEV] Namespace resolution

From: Date: Tue, 11 Dec 2007 23:27:01 +0000
Subject: Re: AW: [PHP-DEV] Namespace resolution
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.internals 
Request: Send a blank email to internals+get-33944@lists.php.net to get a copy of this message
<example.php> require_once('setup.php'); import Name::Space; $d = new DateTime(); // a PHP DateTime someStuffWeDoNotHaveControlOver(); $d = new DateTime(); // a Name::Space::DateTime now!
Of course not. DateTime would be just DateTime there, not Name::Space::DateTime, since you are not inside namespace Name::Space but in global context. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#33944) next »