Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3159 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82801 invoked by uid 1007); 2 Jul 2003 05:35:12 -0000 Message-ID: <20030702053512.82800.qmail@pb1.pair.com> To: internals@lists.php.net Reply-To: "l0t3k" Date: Mon, 30 Jun 2003 23:44:52 -0400 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Posted-By: 68.158.7.85 Subject: Class Entry memleak.. From: cshmoove@bellsouth.net ("l0t3k") i have a ZE2 OO extension which declares class constants as follows : void register_class_long_constant_ex(zend_class_entry * ce, char *key, uint key_len, long lval) { zval *tmp; MAKE_STD_ZVAL(tmp); ZVAL_LONG(tmp, lval); zend_hash_update(&(ce)->constants_table, key, key_len, (void *) &tmp, sizeof(zval *), NULL); } for some reason the memory allocated here by MAKE_STD_ZVL is not reclaimed at process termination. i get the same problem in cgi as well as cli mode. any ideas of why cleanup isnt happening properly ? l0t3k