Hi!
Yes, it breaks the principle. E.g. caller knows callee returns by ref - you
break this, as easy as that.
I'm sorry I think you misunderstood my proposal. I proposed allowing
overriding this:
public function __get($name)
with this:
public function &__get($name)
but not the reverse. So if the caller known callee returns by ref - it
means it already expects the child class, not the parent class. Thus, it
does not break anything.
Is there any other problem that you see?
--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED] http://www.zend.com/
(408)253-8829 MSN: [EMAIL PROTECTED]
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php