The problem was that it isn't immediately clear why we would consider
"Sub\Object" to be the same as "\Sub\Object", but "Object" to be
different from "\Object" inside a namespace context, but the same
outside a namespace context.
The "Sub\Object" should be understand as fully qualified identifiers and
thus considered as the same as "\Sub\Object".
I understand this new behaviour is same as using "relative paths", but
there is a common best practise to not make dependencies form topper
namespaces to deeper ones.
So it is rare to have class Company\Software\Base extending
Company\Software\Web\Forms\Control (i.e. Base extends
Web\Forms\Control), and it is common have class
Company\Software\Web\Forms\Control extending Company\Software\Base.
So in real world it means that nearly every usage of "partially
qualified indentifiers" (Sub\Object) have to be written with preceding
backslash.
David Grudl
My english is poor but I hope you understand me ;)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php