From 56ae3f6c4a6e4ebcb4bc07777286f355e7bee3b9 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 8 Oct 2019 16:50:04 +0300 Subject: [PATCH] Added "const" qualifier --- Zend/zend_compile.c | 2 +- Zend/zend_compile.h | 2 +- 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 { -- 2.40.0