Re: [PHP4BETA] Questions regarding the zend API

From: Date: Fri, 17 Mar 2000 15:16:50 +0000
Subject: Re: [PHP4BETA] Questions regarding the zend API
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-12326@lists.php.net to get a copy of this message
On Fri, 17 Mar 2000, Andrei Zmievski wrote: > On Fri, 17 Mar 2000, Ted Parnefors wrote: > > > I define "pval *myobject" > > then I have a loop similar to: > > > > MAKE_STD_>VAL(myobject); > > object_init(myobject); // yes, I need to check this for errors. > > add_property(myobject,"name","this is my name",1); > > add_property(myobject,"size","this is my size",1); > > add_next_index_object(return_value,myobject); > > // Ehm... Don't I need free the memory used by my object? > > // How do I do that? > > > > (and return_value has been initialized as an array) > > > I don't even know where you found add_next_index_object(), it's not in > Zend... > Well, it turned out to be a helper function in the imap-module where I had mostly been looking for how to use zend. Learning... :) Anyway, I got things to work properly, but my question remains, don't I have to free the memory for the temporarily allocated objects? -- Ted Parnefors <ted@mtv.se>, KeyID 0x6627DEE4 PGP Fingerprint 1C39FA94703EB54A011CF18932018E256627DEE4

« previous php.version4 (#12326) next »