com php-src: Removed EG(valid_symbol_table). Used EG(active) instead.: Zend/zend.c Zend/zend _execute_API.c Zend/zend_globals.h main/main.c

From: Date: Mon, 26 Jun 2017 10:35:07 +0000
Subject: com php-src: Removed EG(valid_symbol_table). Used EG(active) instead.: Zend/zend.c Zend/zend _execute_API.c Zend/zend_globals.h main/main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-98229@lists.php.net to get a copy of this message
Commit: caaeb4849aa56cbbdc66ea015c11a58bd47a43ff Author: Dmitry Stogov <dmitry@zend.com> Mon, 26 Jun 2017 13:35:07 +0300 Parents: 24030d54d86e4b54055b9668d90e5680d8167094 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=caaeb4849aa56cbbdc66ea015c11a58bd47a43ff Log: Removed EG(valid_symbol_table). Used EG(active) instead. Changed paths: M Zend/zend.c M Zend/zend_execute_API.c M Zend/zend_globals.h M main/main.c Diff: diff --git a/Zend/zend.c b/Zend/zend.c index a667709..0cb0cc7 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -638,7 +638,6 @@ static void executor_globals_ctor(zend_executor_globals *executor_globals) /* {{ zend_get_windows_version_info(&executor_globals->windows_version_info); #endif executor_globals->flags = EG_FLAGS_INITIAL; - executor_globals->valid_symbol_table = 0; } /* }}} */ diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 302a782..5e02b78 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -146,7 +146,6 @@ void init_executor(void) /* {{{ */ zend_vm_stack_init(); zend_hash_init(&EG(symbol_table), 64, NULL, ZVAL_PTR_DTOR, 0); - EG(valid_symbol_table) = 1; zend_llist_apply(&zend_extensions, (llist_apply_func_t) zend_extension_activator); @@ -267,7 +266,6 @@ void shutdown_executor(void) /* {{{ */ /* All resources and objects are destroyed. */ /* No PHP callback functions may be called after this point. */ EG(active) = 0; - EG(valid_symbol_table) = 0; zend_try { zend_llist_apply(&zend_extensions, (llist_apply_func_t) zend_extension_deactivator); diff --git a/Zend/zend_globals.h b/Zend/zend_globals.h index 151f47c..c026b30 100644 --- a/Zend/zend_globals.h +++ b/Zend/zend_globals.h @@ -208,7 +208,6 @@ struct _zend_executor_globals { struct _zend_module_entry *current_module; zend_bool active; - zend_bool valid_symbol_table; zend_uchar flags; zend_long assertions; diff --git a/main/main.c b/main/main.c index d6dee64..90dc78d 100644 --- a/main/main.c +++ b/main/main.c @@ -908,7 +908,7 @@ PHPAPI ZEND_COLD void php_verror(const char *docref, const char *params, int typ efree(docref_buf); } - if (PG(track_errors) && module_initialized && EG(valid_symbol_table) && + if (PG(track_errors) && module_initialized && EG(active) && (Z_TYPE(EG(user_error_handler)) == IS_UNDEF || !(EG(user_error_handler_error_reporting) & type))) { zval tmp; ZVAL_STRINGL(&tmp, buffer, buffer_len); @@ -1235,7 +1235,7 @@ static ZEND_COLD void php_error_cb(int type, const char *error_filename, const u return; } - if (PG(track_errors) && module_initialized && EG(valid_symbol_table)) { + if (PG(track_errors) && module_initialized && EG(active)) { zval tmp; ZVAL_STRINGL(&tmp, buffer, buffer_len);

« previous php.cvs (#98229) next »