diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-07-04 18:03:45 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-07-04 18:03:45 +0400 |
commit | 6bf24f4dd01331122a0f10db392c08605f159826 (patch) | |
tree | 7fe575ead375355aab6c9b2c8a1593642d658406 /Zend/zend.c | |
parent | d2890963e4540a20954afae0e059810312c9dc4e (diff) | |
download | php-git-6bf24f4dd01331122a0f10db392c08605f159826.tar.gz |
Removed EG(active_symbol_table) and use corresponding value from EG(current_execute_data)
Diffstat (limited to 'Zend/zend.c')
-rw-r--r-- | Zend/zend.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Zend/zend.c b/Zend/zend.c index 14045914b6..85578b5aac 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -938,7 +938,6 @@ ZEND_API void zend_deactivate(TSRMLS_D) /* {{{ */ { /* we're no longer executing anything */ EG(current_execute_data) = NULL; - EG(active_symbol_table) = NULL; zend_try { shutdown_scanner(TSRMLS_C); @@ -1037,6 +1036,7 @@ ZEND_API void zend_error(int type, const char *format, ...) /* {{{ */ zend_stack declare_stack; zend_stack list_stack; zend_stack context_stack; + zend_array *symbol_table; TSRMLS_FETCH(); /* Report about uncaught exception in case of fatal errors */ @@ -1175,16 +1175,14 @@ ZEND_API void zend_error(int type, const char *format, ...) /* {{{ */ ZVAL_LONG(¶ms[3], error_lineno); - if (!EG(active_symbol_table)) { - zend_rebuild_symbol_table(TSRMLS_C); - } + symbol_table = zend_rebuild_symbol_table(TSRMLS_C); /* during shutdown the symbol table table can be still null */ - if (!EG(active_symbol_table)) { + if (!symbol_table) { ZVAL_NULL(¶ms[4]); } else { ZVAL_NEW_ARR(¶ms[4]); - zend_array_dup(Z_ARRVAL(params[4]), &EG(active_symbol_table)->ht); + zend_array_dup(Z_ARRVAL(params[4]), &symbol_table->ht); } ZVAL_COPY_VALUE(&orig_user_error_handler, &EG(user_error_handler)); |