diff options
author | Stanislav Malyshev <stas@php.net> | 2003-03-23 18:13:49 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2003-03-23 18:13:49 +0000 |
commit | 5f47d77b420c5a23a2d30b1979ad229421c885b6 (patch) | |
tree | 2318bb19b427001c7e5355b7ed2dd73acd3cbbe1 | |
parent | 2698a4bd0535562a807ac2092a2d589d1f0d64a1 (diff) | |
download | php-git-5f47d77b420c5a23a2d30b1979ad229421c885b6.tar.gz |
resore namespace on shutdown - since some functions use
EG() and CG() pointers
-rw-r--r-- | Zend/zend.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Zend/zend.c b/Zend/zend.c index cc4484c31e..9972616646 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -763,6 +763,11 @@ void zend_deactivate(TSRMLS_D) EG(opline_ptr) = NULL; EG(active_symbol_table) = NULL; + /* restore namespace to global */ + zend_switch_namespace(EG(global_namespace_ptr)); + CG(function_table) = EG(function_table); + CG(class_table) = EG(class_table); + zend_try { shutdown_scanner(TSRMLS_C); } zend_end_try(); |