Hi!
I suspect even ZF will run into some kind of import * functionality being needed. Do you really want to tell a user they have to write 18 use statements before using say the DB component? Or for PEAR2? when a
I answered this exactly question about 100 times already. No, you just import DB and then do DB::Class1, DB::Class2 etc. up to DB::Class18. Does nobody ever read anything prior to starting discussing namespaces?
As you said before - how is it any different from just being able to call escape("foo") or display("foo"); It's a matter of taste. To me that is not anymore of a meaningful name - just a different syntax and not one your average wordpress user would know how to handle.
Well, if it's just a matter of taste - then, well, tastes differ. Saying "my taste requires every name not to have ::" is not the same as saying "namespaced functions are useless".
No - imagine your app is all unicode and you want strlen to actually use an mbstring or iconv implementation - you could wrap that transparently for your template authors.
Then I'd like hell make sure that unicode strlen and binary strlen have different names so I could know when I call which - in case I ever get wrong one called on wrong type of variable, at least until I have PHP 6 where it is marked with different type and autoconverted. Quickest way to get into trouble is to have two indistinguishable and incompatible functions operating on two indistinguishable and incompatible types of data.
Sometimes security is important in templates, depending on who is creating them and how you allow users to edit them. Not all applications have the same requirements.
Err? Security? PHP has no intra-language security and never had and never intended to have. I don't even want to begin to understand how one could expect to have intra-language security in PHP.
-- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php