Hi!

Right now, strict inheritance rules do not allow to override
public function __get($name)
with
public function & __get($name)

I think we may want to allow this (but not the reverse - overriding by-ref return with by-val should not be allowed). Since by-ref return still can be used in by-val context, it should not break the LSP. And it can be useful in some situations - __get having specific by-ref semantics is one of them.

What do you think?
--
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

Reply via email to