summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-10-08 16:50:04 +0300
committerDmitry Stogov <dmitry@zend.com>2019-10-08 16:50:04 +0300
commit56ae3f6c4a6e4ebcb4bc07777286f355e7bee3b9 (patch)
tree71a52719b0fbc93696b485885de28cbd2b70db27
parenteec04f6b56fb9c39b971e013ba2a7e8722120adf (diff)
downloadphp-git-56ae3f6c4a6e4ebcb4bc07777286f355e7bee3b9.tar.gz
Added "const" qualifier
-rw-r--r--Zend/zend_compile.c2
-rw-r--r--Zend/zend_compile.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 2d5fd66efd..906b544a15 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -1970,7 +1970,7 @@ static inline uint32_t zend_emit_jump(uint32_t opnum_target) /* {{{ */
}
/* }}} */
-ZEND_API int zend_is_smart_branch(zend_op *opline) /* {{{ */
+ZEND_API int zend_is_smart_branch(const zend_op *opline) /* {{{ */
{
switch (opline->opcode) {
case ZEND_IS_IDENTICAL:
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h
index 9a314ccbdc..03e007fe33 100644
--- a/Zend/zend_compile.h
+++ b/Zend/zend_compile.h
@@ -826,7 +826,7 @@ ZEND_API char *zend_make_compiled_string_description(const char *name);
ZEND_API void zend_initialize_class_data(zend_class_entry *ce, zend_bool nullify_handlers);
uint32_t zend_get_class_fetch_type(zend_string *name);
ZEND_API zend_uchar zend_get_call_op(const zend_op *init_op, zend_function *fbc);
-ZEND_API int zend_is_smart_branch(zend_op *opline);
+ZEND_API int zend_is_smart_branch(const zend_op *opline);
typedef zend_bool (*zend_auto_global_callback)(zend_string *name);
typedef struct _zend_auto_global {