In any case, is this zval something you keep locally in your extension or are you returning/adding it to the engine's symbol table? If so, the engine should take care of the memory automatically as long as you've done everything correctly.
Maybe you should explain in more detail what you're doing.
Andi
At 12:45 AM 11/9/2002 -0800, Rasmus Lerdorf wrote:
Yup, you will need to FREE_ZVAL() it On 9 Nov 2002, Tony Leake wrote:> > Hi, > > I am getting the following output from a php script that calls an > extension I am writing (I have compiled the extension with > --enable-debug) > > > /home/phpcvs/php4_head/ext/pipe/pipe.c(245) : Freeing 0x0822568C (12 > bytes), script=test.php > /home/phpcvs/php4_head/ext/pipe/pipe.c(244) : Freeing 0x0822564C (12 > bytes), script=test.php > > where lines lines 245 and 244 are: > MAKE_STD_ZVAL(read); > MAKE_STD_ZVAL(write); > > Does this mean that I need to free the memory from the zvals when the > script exits, or is this just information? > > Thanks for your help > Tony > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php