views:

177

answers:

1

Hi, im now using namespaces in PHP 5.3 now there is a fallback mechanism for functions which dont exist in the namespace. so php every time checks if the function exists in namespace and then tries to load it from global space.

So what about all php internal functions? strstr for example? Should i now use every php internal function with a \ ? to avoid php first checking the namespace? is this fallback a huge performance drop? what do you think?

+10  A: 

No matter the performance hit, no way should you do that. Ew, ew, ew. Any performance boost there may be is not worth your sanity.

Matchu
Or the sanity of the next guy to manage that code. Can you imagine opening some code and seeing that?
Tim Lytle
thanks for your ansers!@Tim: no i cant ;)
lhwparis