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