Re: namespaces: import name conflicts with defined class
| From: | Stanislav Malyshev | Date: | Wed, 03 Oct 2007 19:03:07 +0000 |
| Subject: | Re: namespaces: import name conflicts with defined class | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32608@lists.php.net to get a copy of this message | ||
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