Created
April 16, 2020 16:59
-
-
Save cmb69/0ffa4599448cf1a32039bf6b1f2d0929 to your computer and use it in GitHub Desktop.
possible fix for PHP bug #79475
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ext/opcache/Optimizer/zend_func_info.c | 2 +- | |
ext/opcache/Optimizer/zend_inference.c | 2 +- | |
2 files changed, 2 insertions(+), 2 deletions(-) | |
diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c | |
index 7cde2dd34f..c9c567ffbf 100644 | |
--- a/ext/opcache/Optimizer/zend_func_info.c | |
+++ b/ext/opcache/Optimizer/zend_func_info.c | |
@@ -93,7 +93,7 @@ static const func_info_t func_infos[] = { | |
/* zend */ | |
F1("zend_version", MAY_BE_STRING), | |
FN("func_get_arg", UNKNOWN_INFO), | |
- F1("func_get_args", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_ANY), | |
+ FN("func_get_args", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_ANY), | |
F1("get_class_vars", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF), | |
FN("get_object_vars", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF), | |
FN("get_mangled_object_vars", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF), | |
diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c | |
index 8144185d07..f868f78265 100644 | |
--- a/ext/opcache/Optimizer/zend_inference.c | |
+++ b/ext/opcache/Optimizer/zend_inference.c | |
@@ -3465,7 +3465,7 @@ static zend_always_inline int _zend_update_type_info( | |
UPDATE_SSA_TYPE(MAY_BE_LONG, ssa_op->result_def); | |
break; | |
case ZEND_FUNC_GET_ARGS: | |
- UPDATE_SSA_TYPE(MAY_BE_RC1| MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_ANY, ssa_op->result_def); | |
+ UPDATE_SSA_TYPE(MAY_BE_RC1 | MAY_BE_RCN| MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_ANY, ssa_op->result_def); | |
break; | |
case ZEND_GET_CLASS: | |
case ZEND_GET_CALLED_CLASS: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment