On Thu, 2002-11-14 at 14:09, Timm Friebe wrote:
> Hello,
[...]
>     function __get($k) {
>       return $this->$k;
>     }
[...]

Woops, this is wrong, of course.

function __get($k, &$v) {
  $v= &$this->$k;
  return TRUE;
}

I also missed that if a member variable exists, __get or __set won't be
called. I think this'd be quite useful though...

-- 
Timm
Any sufficiently advanced bug is indistinguishable from a feature


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to