Re: Please save me from insanity - PHP4 / OO

From: Date: Sun, 05 Dec 2004 19:25:46 +0000
Subject: Re: Please save me from insanity - PHP4 / OO
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-203532@lists.php.net to get a copy of this message
Ben wrote:
Thanks a lot for your responses guys. Unfortunately it still isn't working for me. I've tried both :
    $ob->prop = &$this
and    $ob->prop &= $this (just in case)
Neither produce a "PHP is OK". I'm using version 4.2.2 btw. (If ONLY I was on 5) Thanks again, Ben Greg wrote:
class Test {
    function setMe(&$obj)
    {
        $ob->prop = &$this; // note another &
this line should be $obj->prop = &$this, just a typo Greg

« previous php.general (#203532) next »