Re: [PHP-DEV] [Q] references and objects

2011-08-02 Thread Etienne Kneuss
Hello, On Tue, Aug 2, 2011 at 22:05, Flavius Aspra wrote: > I have a zval *obj holding an object of class B, which I then add to an > array member of another object of class A. Then I create a new instance > *obj2 of class B, to which I want to add a reference to *obj. How would I > best go about

[PHP-DEV] [Q] references and objects

2011-08-02 Thread Flavius Aspra
I have a zval *obj holding an object of class B, which I then add to an array member of another object of class A. Then I create a new instance *obj2 of class B, to which I want to add a reference to *obj. How would I best go about it? So A works as a "pool" of B's, and B's may reference to ea