zend_class_entry memory leak ?

From: Date: Sun, 13 Apr 2003 07:13:04 +0000
Subject: zend_class_entry memory leak ?
Groups: php.internals 
Request: Send a blank email to internals+get-884@lists.php.net to get a copy of this message
i have the following code to register class constants : void register_class_long_constant_ex(zend_class_entry *ce, char *key, uint key_len, long lval) { HashTable *ht = &(ce)->constants_table; zval *tmp; MAKE_STD_ZVAL(tmp); ZVAL_LONG(tmp, lval); zend_hash_update(ht, key, key_len, (void *) &tmp, sizeof(zval *), NULL); } on shutdown, i get a report of a leak at MAKE_STD_ZVAL, once for each constant defined. am i doing something wrong, or is the class constant table not properly destructed ? l0t3k

« previous php.internals (#884) next »