summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2004-03-16 22:27:57 +0000
committerDerick Rethans <derick@php.net>2004-03-16 22:27:57 +0000
commit1ef3c8c74acae6c8955ec44ffc3966f848c84861 (patch)
tree59e00d752ae037af0e97d2880f9e44e724dce576
parent6535933f7cc2e8a33407df70a1a6d7d1d6b9d6ea (diff)
downloadphp-git-1ef3c8c74acae6c8955ec44ffc3966f848c84861.tar.gz
- Replaced the exec_finished hook by the zend_post_deactive hook for
extensions. The new hook will be run after the symbol table and destructors are run. (PHP part)
-rw-r--r--NEWS3
-rw-r--r--main/main.c8
2 files changed, 7 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index a301fa2806..942dcb1439 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,9 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? March 2004, PHP 5 Release Candidate 1
+- Replaced the exec_finished hook by the zend_post_deactive hook for
+ extensions. The new hook will be run after the symbol table and destructors
+ are run. (Derick)
- Fixed possible crash when internal get_method() is not defined. (Andi)
- Fixed calling methods using call_user_func() in conjunction with
the array("Class","Method") syntax to use the scope of the PHP user function.
diff --git a/main/main.c b/main/main.c
index b44c282d9d..8ce1a33c69 100644
--- a/main/main.c
+++ b/main/main.c
@@ -1188,10 +1188,6 @@ void php_request_shutdown(void *dummy)
EG(opline_ptr) = NULL;
zend_try {
- zend_exec_finished(TSRMLS_C);
- } zend_end_try();
-
- zend_try {
php_end_ob_buffers((zend_bool)(SG(request_info).headers_only?0:1) TSRMLS_CC);
} zend_end_try();
@@ -1221,6 +1217,10 @@ void php_request_shutdown(void *dummy)
zend_deactivate(TSRMLS_C);
zend_try {
+ zend_post_deactivate_modules(TSRMLS_C);
+ } zend_end_try();
+
+ zend_try {
sapi_deactivate(TSRMLS_C);
} zend_end_try();