Garbage Collection!

From: Date: Fri, 17 May 2002 17:53:02 +0000
Subject: Garbage Collection!
Groups: php.dev 
Request: Send a blank email to php-dev+get-84149@lists.php.net to get a copy of this message
Let's say I do: zval *newVar; MAKE_STD_ZVAL( newVar ); ZEND_SET_SYMBOL( &EG(symbol_table), "varKey", newVar ); and then I do: MAKE_STD_ZVAL( newVar ); ZEND_SET_SYMBOL( &EG(symbol_table), "varKey", newVar ); This will overwrite my orignal newVar, however, will the original newVar be garbaged collected or is this my responsibility now that I'm out of PHP land? Also if it is auto garbage collected, is there a way I can force garbage collection to run while I'm in a deep recursion? Cheers, Rob. -- .-----------------. | Robert Cummings | :-----------------`----------------------------. | Webdeployer - Chief PHP and Java Programmer | :----------------------------------------------: | Mail : mailto:robert.cummings@webmotion.com | | Phone : (613) 731-4046 x.109 | :----------------------------------------------: | Website : http://www.webmotion.com | | Fax : (613) 260-9545 | `----------------------------------------------'

« previous php.dev (#84149) next »