# [REPOST] MFH Request for Zend.c for Memory Leak

- Thread: https://externals.io/message/7137
- Original archive: https://news-web.php.net/php.internals/7137
- Started by Michael Sisolak on 2004-01-16T15:44:08+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #7137 — Michael Sisolak — 2004-01-16T15:44:08+00:00

URL: https://externals.io/message/7137#7137

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
