Re: [PHP] Classes, Constructors, References and Recursion

2005-04-20 Thread Evert | Rooftop Solutions
Jochem Maas wrote: also I believe print_r() and var_dump() have a few odditities regarding display of recursion with regard to objects... internals mailinglist archive might tell you more on that. I think I have the answer, when I pass a var to print_r it isn't passed by reference, so there will

Re: [PHP] Classes, Constructors, References and Recursion

2005-04-20 Thread Jochem Maas
Evert|Rooftop Solutions wrote: Hi, I have this piece of code: class test1 { var $data = 'hi', $node = false; function test1() { $this->node =& new test2($this); } } class test2 { var $data = 'yoyo',

[PHP] Classes, Constructors, References and Recursion

2005-04-20 Thread Evert | Rooftop Solutions
Hi, I have this piece of code: class test1 { var $data = 'hi', $node = false; function test1() { $this->node =& new test2($this); } } class test2 { var $data = 'yoyo', $root = false; fu