Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:740 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74701 invoked from network); 6 Apr 2003 13:52:49 -0000 Received: from unknown (HELO mailout03.sul.t-online.com) (194.25.134.81) by pb1.pair.com with SMTP; 6 Apr 2003 13:52:49 -0000 Received: from fwd01.sul.t-online.de by mailout03.sul.t-online.com with smtp id 192AZj-0000Wu-08; Sun, 06 Apr 2003 15:52:47 +0200 Received: from baumbart.post.rwth-aachen.de (520072483730-0001@[80.142.187.126]) by fwd01.sul.t-online.com with esmtp id 192AZV-1utB0iC; Sun, 6 Apr 2003 15:52:33 +0200 Reply-to:marcus.boerger@post.rwth-aachen.de Message-ID: <5.1.0.14.2.20030406155022.03b2cc48@pop.t-online.de> X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sun, 06 Apr 2003 15:52:30 +0200 To: Timm Friebe Cc: internals@lists.php.net In-Reply-To: <1049634596.25691.927.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Sender: 520072483730-0001@t-dialin.net Subject: Re: [PHP-DEV] Suggestions: Built-in classes for PHP5 From: marcus.boerger@t-online.de ((Marcus =?iso-8859-1?Q?B=F6rger?=)) References: <1049634596.25691.927.camel@localhost> 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