RE: [PHP-DEV] Inconsistencies in 5.3
| From: | Catalin Zamfir Alexandru, DATAGRAM SRL | Date: | Thu, 14 Aug 2008 12:11:13 +0000 |
| Subject: | RE: [PHP-DEV] Inconsistencies in 5.3 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-39961@lists.php.net to get a copy of this message | ||
What do you mean are "file-local"?! So if I have a B.php, that includes
A.php, and in A.php I have a namespace called Foo, I can't call a function
from that namespace like Foo::someFunc () unless I call it from A.php?! So a
Foo:someFunc () from B.php would be illegal? Cause if you're suggesting
this, the whole idea of namespaces does something that can be described in
PHP as: die ($namespaceLittleNamespaceIdea);
-----Original Message-----
From: Stanislav Malyshev [mailto:stas@zend.com]
Sent: Wednesday, August 13, 2008 11:18 PM
To: Marcus Boerger
Cc: internals@lists.php.net
Subject: Re: [PHP-DEV] Inconsistencies in 5.3
Hi!
> Simply include a script from two locations with different namespaces or
one
> with namespace and the otherone without.
I'm afraid you misunderstand how namespaces work. As I explained
numerous times, namespaces are file-local, and this when including file,
it does not matter a bit what was including context.
--
Stanislav Malyshev, Zend Software Architect
stas@zend.com http://www.zend.com/
(408)253-8829 MSN: stas@zend.com
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php