zend_declare_property_null

From: Date: Sun, 23 Sep 2007 16:58:21 +0000
Subject: zend_declare_property_null
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-4876@lists.php.net to get a copy of this message
Hi everyone, I have a problem :) I want this : class A { var $b; public __construct() {
     $b = new B();
} } I thought used zend_declare_property_null and put B object instance to this property but i don't know how do that. Moreover, i must put an "handle" (pointer to an intern structure) of A object in B object. Other question, it's better to put code in __construct or in the function pointed by (zend_class_entry*)ce->create_object = my_new_object; ? Best regards, Homer242.

« previous php.pecl.dev (#4876) next »