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
[EMAIL PROTECTED]
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
--- 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
}
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php