Hi Stefan,

Dev writes a script, uses autoload, overrides global class.
Distributed to user, that has ns.lookup=On as you propose, user borks his
install, lacks the file containing the class, gets the global class ->
obscure error messages because of nonexisting methods in places unrelated to
the place where the actual error happened. Not really a good idea, IMO.

This is what happens now, right. So what's different?

Failing there is the best option. It's not like you have to prefix every
single occurence, you just have to say at the top of the file "When I say
Exception, I mean \Exception".

The point is that your dev would have done exactly that, so whether your user has the setting on or off is immaterial.

- Steph

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to