Re: Suggestions: Built-in classes for PHP5

From: Date: Sun, 06 Apr 2003 13:52:30 +0000
Subject: Re: Suggestions: Built-in classes for PHP5
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-740@lists.php.net to get a copy of this message
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

« previous php.internals (#740) next »