Fixed bug #35009 (ZTS: Persistent resource destruct crashes when extension is compiled as shared)

This commit is contained in:
Dmitry Stogov 2005-11-07 12:24:55 +00:00
parent 88edad9f08
commit 9e1beb4f1c
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -9,6 +9,8 @@ PHP NEWS
- Fixed bug #35017 (Exception thrown in error handler may cause unexpected
behavior). (Dmitry)
- Fixed bug #35014 (array_product() always returns 0). (Ilia)
- Fixed bug #35009 (ZTS: Persistent resource destruct crashes when extension
is compiled as shared). (Dmitry)
- Fixed bug #34851 (SO_RECVTIMEO and SO_SNDTIMEO socket options expect integer
parameter on Windows). (Mike)
- Fixed bug #31971 (ftp_login fails on some SSL servers).

View File

@ -702,6 +702,7 @@ void zend_shutdown(TSRMLS_D)
#ifdef ZEND_WIN32
zend_shutdown_timeout_thread();
#endif
zend_destroy_rsrc_list(&EG(persistent_list) TSRMLS_CC);
zend_hash_graceful_reverse_destroy(&module_registry);
zend_hash_destroy(GLOBAL_FUNCTION_TABLE);
@ -719,7 +720,6 @@ void zend_shutdown(TSRMLS_D)
zend_hash_destroy(GLOBAL_CONSTANTS_TABLE);
free(GLOBAL_CONSTANTS_TABLE);
zend_destroy_rsrc_list(&EG(persistent_list) TSRMLS_CC);
#ifdef ZTS
GLOBAL_FUNCTION_TABLE = NULL;
GLOBAL_CLASS_TABLE = NULL;