Re: Object References Problem
| From: | Manuel V�zquez Acosta | Date: | Fri, 31 Oct 2003 15:06:07 +0000 |
| Subject: | Re: Object References Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168228@lists.php.net to get a copy of this message | ||
I think, as for PHP4, that the problem is this function:
> function object_2(&$parent_object)
> {
> $this->my_parent = $parent_object;
> }
Although you are passing the object by reference you're assigning a copy of
it.
Try this:
$this->my_parent = &$parent_object;
Manu.