Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7137 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90845 invoked by uid 1010); 16 Jan 2004 15:44:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 90662 invoked from network); 16 Jan 2004 15:44:09 -0000 Received: from unknown (HELO web13425.mail.yahoo.com) (216.136.175.156) by pb1.pair.com with SMTP; 16 Jan 2004 15:44:09 -0000 Message-ID: <20040116154408.97132.qmail@web13425.mail.yahoo.com> Received: from [24.215.131.184] by web13425.mail.yahoo.com via HTTP; Fri, 16 Jan 2004 07:44:08 PST Date: Fri, 16 Jan 2004 07:44:08 -0800 (PST) To: internals@lists.php.net MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-120960565-1074267848=:96721" Subject: [REPOST] MFH Request for Zend.c for Memory Leak From: msisolak@yahoo.com (Michael Sisolak) --0-120960565-1074267848=:96721 Content-Type: text/plain; charset=us-ascii Content-Id: Content-Disposition: inline In the ZendEngine2 zend_shutdown() the GLOBAL_CONSTANTS_TABLE is correctly destroyed and freed: #ifdef ZTS . . . zend_hash_destroy(GLOBAL_CONSTANTS_TABLE); free(GLOBAL_CONSTANTS_TABLE); . . . #endif Can this to MFHed into the PHP 4.3.x zend.c (where the GLOBAL_CONSTANTS_TABLE is currently not getting freed on thread shutdown) so that the bottom of zend_shutdown() looks like: #ifndef ZTS zend_shutdown_constants(); #else zend_hash_destroy(GLOBAL_CONSTANTS_TABLE); free(GLOBAL_CONSTANTS_TABLE); #endif I've attached a patch for 4.3.5RC1. Michael Sisolak msisolak@yahoo.com __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus --0-120960565-1074267848=:96721 Content-Type: text/plain; name="zend.c.diff" Content-Description: zend.c.diff Content-Disposition: inline; filename="zend.c.diff" --- zend.c.orig Wed Oct 22 18:47:18 2003 +++ zend.c Fri Jan 16 10:41:53 2004 @@ -566,6 +566,9 @@ free(zend_version_info); #ifndef ZTS zend_shutdown_constants(); +#else + zend_hash_destroy(GLOBAL_CONSTANTS_TABLE); + free(GLOBAL_CONSTANTS_TABLE); #endif } --0-120960565-1074267848=:96721--