Re: [PHP-DEV] namespaces: import name conflicts with defined class

2007-10-03 Thread 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 :)

Re: [PHP-DEV] namespaces: import name conflicts with defined class

2007-10-03 Thread Marcus Boerger
Hello Benjamin, naive question: how do you define your exception which needs to onherit Exception? Are you doing this: class Exception extends ::exception { } ??? marcus p.s.: I think that is really ugly and actually sounds like replacing a core functionality... Tuesday, October 2, 2007,

[PHP-DEV] namespaces: import name conflicts with defined class

2007-10-02 Thread Benjamin Schulz
Hi all, import Foo::Bar AS DomDocument; import Foo::Exception; import MyStuff::Dom::XsltProcessor; Result in a "Fatal error: Import name '...' conflicts with defined class" Of course i want to refer to my own exception in my application or framework as "Exception", and of course i want to us