Re: ZE2 object constructor question

From: Date: Wed, 13 Nov 2002 13:57:55 +0000
Subject: Re: ZE2 object constructor question
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-90967@lists.php.net to get a copy of this message
To answer myself... i just did the following : *return_value = *(getThis()); zval_copy_ctor(return_value); and everything seems to be working ok... "L0t3k" <cshmoove@hotmail.com> wrote in message news:20021112210753.3233.qmail@pb1.pair.com... > im creating some classes in an extension and i have a question. > im following instructions in the OBJECTS2_HOWTO, and have managed to get the > engine to call my constructor. in the constructor i can retrieve the object > created with the create_object_handler, which means getThis() already > contains my object. > the question is , do i still have to explicitly set return_value, given > that getThis() is already a valid object zval ? > > l0t3k > >

« previous php.dev (#90967) next »