Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32608 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85562 invoked by uid 1010); 3 Oct 2007 19:11:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 85546 invoked from network); 3 Oct 2007 19:11:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Oct 2007 19:11:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:55785] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 83/BD-09129-249E3074 for ; Wed, 03 Oct 2007 15:11:00 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 3 Oct 2007 21:10:56 +0200 Received: from [127.0.0.1] ([192.168.16.180]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 3 Oct 2007 12:03:58 -0700 Message-ID: <4703E76B.3050000@zend.com> Date: Wed, 03 Oct 2007 12:03:07 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Marcus Boerger CC: Benjamin Schulz , internals@lists.php.net References: <1575776287.20071003171033@marcus-boerger.de> In-Reply-To: <1575776287.20071003171033@marcus-boerger.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Oct 2007 19:03:58.0458 (UTC) FILETIME=[26FEC5A0:01C805F0] Subject: Re: [PHP-DEV] namespaces: import name conflicts with defined class From: stas@zend.com (Stanislav Malyshev) > naive question: how do you define your exception which needs to onherit > Exception? > > Are you doing this: > > class Exception extends ::exception { } Inside namespace - yes, that's the best way. In fact, I think Exception extends Exception may work too, but that would be seriously confusing :) -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com