Re: by-ref return & inheritance
| From: | Stanislav Malyshev | Date: | Sat, 09 Aug 2008 00:09:50 +0000 |
| Subject: | Re: by-ref return & inheritance | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-39789@lists.php.net to get a copy of this message | ||
Hi!
I'm not sure to like the idea. I'm not a fan of OO strictness but I'd to agree with Marcus, I do not expect a reference from an overridedHow can you "not expect reference"? I.e. which code that worked previously wouldn't work now?
__get. There is also the problem with internal classes, if I'm not mistaken.Which problem? Could you elaborate?
I meant set by reference. Is it not the same problem? class foo {function __set($key, &$value) {}} >> fatal errorAh, I see what you mean. But I'm not sure __set has this semantics now anyway - unless we'd support it with $a->foo =& $bar somehow, but right now we don't. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com