Re: [PHP-DEV] 5.3 and reflection

2008-05-13 Thread Stanislav Malyshev
Hi! To continue your example, if I tried to do this: $reflect = new ReflectionClass("Baz"); it would not work, regardless of the namespace of the file that statement appears in. I must instead do this: $reflect = new ReflectionClass("Foo::Bar::Baz"); Right. You can use __NAMESPACE__ comp

Re: [PHP-DEV] 5.3 and reflection

2008-05-13 Thread Stanislav Malyshev
Hi! I'm installing a recent snap of 5.3 on my dev server. The app I'm working on makes heavy use of reflection. How has reflection changed in 5.3 to address namespaces? What resolution rules apply when creating a Namespaces should not have big influence on reflection, since namespace is

Re: [PHP-DEV] 5.3 and reflection

2008-05-13 Thread Jeremy
Stanislav Malyshev wrote: Hi! I'm installing a recent snap of 5.3 on my dev server. The app I'm working on makes heavy use of reflection. How has reflection changed in 5.3 to address namespaces? What resolution rules apply when creating a Namespaces should not have big influence on refl

[PHP-DEV] 5.3 and reflection

2008-05-13 Thread Jeremy
Hello, I'm installing a recent snap of 5.3 on my dev server. The app I'm working on makes heavy use of reflection. How has reflection changed in 5.3 to address namespaces? What resolution rules apply when creating a ReflectionClass? If I try to create a ReflectionClass for a class that is