[PHP-DEV] Re: Namespaced function vs static method in global class

2008-09-16 Thread Gregory Beaver
Ionut Gabriel Stan wrote: > echo Test::foo(); // outputs namespace function > echo ''; > echo ::Test::foo(); // outputs namespace function > My questions are: > > 1. How should I call the static method foo in the global class Test (except > for call_user_func) > 2. How should I call the sta

Re: [PHP-DEV] Namespaced function vs static method in global class

2008-09-16 Thread Jochem Maas
Stanislav Malyshev schreef: Hi! 1. include.php I would advise you to avoid calling your classes and namespaces by the same name, for the sake of clarity - especially if you are going to have identically named static f

Re: [PHP-DEV] Namespaced function vs static method in global class

2008-09-16 Thread Stanislav Malyshev
Hi! 1. include.php I would advise you to avoid calling your classes and namespaces by the same name, for the sake of clarity - especially if you are going to have identically named static functions in both. You can alw

[PHP-DEV] Namespaced function vs static method in global class

2008-09-16 Thread Ionut Gabriel Stan
Hi, I've decided to play a little with namespaces as some of you asked for feedback on this list or on your blogs. I'm just an userland developer and have no clue about PHP internals so forgive me if I say something stupid in this regard. Here's what I found on some simple test. It may be the in

Re: [PHP-DEV] php-initialized

2008-09-16 Thread Jakub Vrana
> Looks great! Have been wanting similar behaviour in the lint > function for a while. Just the question is how exhaustive is its > checking. ( Any checking beyond current is pretty good, no > complaints there, but just trying to see how useful it is ). > Brief summary of the sort of situations