zval->refcount

From: Date: Fri, 04 Jun 1999 09:48:15 +0000
Subject: zval->refcount
Groups: php.version4 
Request: Send a blank email to php-version4+get-1274@lists.php.net to get a copy of this message
i'm confused.. some code: ---------- zval *somezval; somezval = emalloc(sizeof(zval)); array_init(somezval); do i need to do:? somezval->refcount = 1; somezval->is_ref = 0; ----------- as array_init does not set those fields (refcount, is_ref) i think we should mybe come up with something like a new_zval() function that allocated a sizeof(pval) thingie and sets the refcount and is_ref. suggestions? tc Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.version4 (#1274) next »