Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:885 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 681 invoked from network); 13 Apr 2003 10:33:35 -0000 Received: from unknown (HELO mailout04.sul.t-online.com) (194.25.134.18) by pb1.pair.com with SMTP; 13 Apr 2003 10:33:35 -0000 Received: from fwd10.sul.t-online.de by mailout04.sul.t-online.com with smtp id 194enl-0000j0-0A; Sun, 13 Apr 2003 12:33:33 +0200 Received: from baumbart.post.rwth-aachen.de (520072483730-0001@[80.142.170.69]) by fwd10.sul.t-online.com with esmtp id 194enb-1IxFhoC; Sun, 13 Apr 2003 12:33:23 +0200 Reply-to:marcus.boerger@post.rwth-aachen.de Message-ID: <5.1.0.14.2.20030413123209.02944550@pop.t-online.de> X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sun, 13 Apr 2003 12:33:21 +0200 To: "l0t3k" Cc: internals@lists.php.net In-Reply-To: <20030413071253.29163.qmail@pb1.pair.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Sender: 520072483730-0001@t-dialin.net Subject: Re: [PHP-DEV] zend_class_entry memory leak ? From: marcus.boerger@t-online.de ((Marcus =?iso-8859-1?Q?B=F6rger?=)) References: <20030413071253.29163.qmail@pb1.pair.com> At 09:13 13.04.2003, l0t3k wrote: >i have the following code to register class constants : > >[...] > >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 ? You should use internal classes and do everything that needs memory with malloc/realoc/free instead of the e functions. The problem is the shutdown sequence. marcus