com php-src: Use "const" qualifier: ext/opcache/Optimizer/zend _inference.c ext/opcache/Optimizer/zend_inference.h
| From: | Dmitry Stogov | Date: | Mon, 14 Oct 2019 18:49:08 +0000 |
| Subject: | com php-src: Use "const" qualifier: ext/opcache/Optimizer/zend _inference.c ext/opcache/Optimizer/zend_inference.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-108917@lists.php.net to get a copy of this message | ||
Commit: cef1960ce7cabc44d0d55df237450547c1231dd7
Author: Dmitry Stogov <dmitry@zend.com> Mon, 14 Oct 2019 21:49:08 +0300
Parents: 52136123591e039623013c5a085ef99c1a3451ba
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=cef1960ce7cabc44d0d55df237450547c1231dd7
Log:
Use "const" qualifier
Changed paths:
M ext/opcache/Optimizer/zend_inference.c
M ext/opcache/Optimizer/zend_inference.h
Diff:
diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c
index b8bd667e74f..51872dcc611 100644
--- a/ext/opcache/Optimizer/zend_inference.c
+++ b/ext/opcache/Optimizer/zend_inference.c
@@ -4320,7 +4320,7 @@ void zend_inference_check_recursive_dependencies(zend_op_array *op_array)
free_alloca(worklist, use_heap);
}
-int zend_may_throw(const zend_op *opline, zend_op_array *op_array, zend_ssa *ssa)
+int zend_may_throw(const zend_op *opline, const zend_op_array *op_array, zend_ssa *ssa)
{
uint32_t t1 = OP1_INFO();
uint32_t t2 = OP2_INFO();
diff --git a/ext/opcache/Optimizer/zend_inference.h b/ext/opcache/Optimizer/zend_inference..h
index 2061d48ebd1..f01f6cc7865 100644
--- a/ext/opcache/Optimizer/zend_inference.h
+++ b/ext/opcache/Optimizer/zend_inference.h
@@ -274,7 +274,7 @@ void zend_func_return_info(const zend_op_array *op_array,
int widening,
zend_ssa_var_info *ret);
-int zend_may_throw(const zend_op *opline, zend_op_array *op_array, zend_ssa *ssa);
+int zend_may_throw(const zend_op *opline, const zend_op_array *op_array, zend_ssa *ssa);
END_EXTERN_C()