At 15:09 06.04.2003, Timm Friebe wrote:
Hello,
as you might know, the Zend Engine 2 features a built-in Exception
class. The problem with a class named Exception is that no user-defined
class named Exception may exist.

That is the sense of built in classes.



Suggestion #1 is to make use of Andrei's API function
zend_register_internal_class_in_ns and to move it to a namespace called
"php". This can be accomplished with a simple patch to
Zend/zend_default_classes.c (attached).

It is just the other way round. Put your used defined "exceptin" in a namespace.


marcus


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



Reply via email to