diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-08-28 02:44:06 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-08-28 02:44:06 +0400 |
commit | f2b0370193634be95b9e04af723e2e97b5406ef3 (patch) | |
tree | 3c761750331ccb05d386b76165563befd2ac8c88 /Zend/zend_compile.h | |
parent | ca0069bc338869b105cee08292130ebac4a4000b (diff) | |
download | php-git-f2b0370193634be95b9e04af723e2e97b5406ef3.tar.gz |
Use 'const' qualifier for pointrs to code used at run-time (the code must not be changed)
Diffstat (limited to 'Zend/zend_compile.h')
-rw-r--r-- | Zend/zend_compile.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h index 4325711dd2..4fe18b9166 100644 --- a/Zend/zend_compile.h +++ b/Zend/zend_compile.h @@ -362,7 +362,7 @@ typedef enum _vm_frame_kind { } vm_frame_kind; struct _zend_execute_data { - struct _zend_op *opline; /* executed opline */ + const zend_op *opline; /* executed opline */ zend_execute_data *call; /* current call */ void **run_time_cache; zend_function *func; /* executed op_array */ @@ -376,7 +376,7 @@ struct _zend_execute_data { zval *return_value; zend_class_entry *scope; /* function scope (self) */ zend_array *symbol_table; - struct _zend_op *fast_ret; /* used by FAST_CALL/FAST_RET (finally keyword) */ + const zend_op *fast_ret; /* used by FAST_CALL/FAST_RET (finally keyword) */ zend_object *delayed_exception; zval old_error_reporting; }; @@ -453,7 +453,7 @@ void zend_handle_encoding_declaration(zend_ast_list *declares TSRMLS_DC); /* parser-driven code generators */ void zend_do_free(znode *op1 TSRMLS_DC); -ZEND_API int do_bind_function(const zend_op_array *op_array, zend_op *opline, HashTable *function_table, zend_bool compile_time TSRMLS_DC); +ZEND_API int do_bind_function(const zend_op_array *op_array, const zend_op *opline, HashTable *function_table, zend_bool compile_time TSRMLS_DC); ZEND_API zend_class_entry *do_bind_class(const zend_op_array *op_array, const zend_op *opline, HashTable *class_table, zend_bool compile_time TSRMLS_DC); ZEND_API zend_class_entry *do_bind_inherited_class(const zend_op_array *op_array, const zend_op *opline, HashTable *class_table, zend_class_entry *parent_ce, zend_bool compile_time TSRMLS_DC); ZEND_API void zend_do_inherit_interfaces(zend_class_entry *ce, const zend_class_entry *iface TSRMLS_DC); |