Hello Christian,
php 4 code is wrong in this and we don't want to support the errors
forever.
marcus
Monday, October 3, 2005, 3:39:00 PM, you wrote:
> Derick Rethans wrote:
>> pointless - I would even go as far as disallowing passing $this by
>> references to a function - where the reference has to be ignored again,
> This would be needed to have something like
> function setfoo(&$obj)
> {
> $obj->foo = 42;
> }
> [...]
> $other->setfoo($this);
> in a way which also works for PHP4.
> a) I know that you now are going to bash me for mentioning PHP4
> b) No, I don't think this is very common or elegant
> But disallowing it might break existing code, no?
> - Chris
Best regards,
Marcus
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php