We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e882f1 commit e7f69f0Copy full SHA for e7f69f0
ext/opcache/Optimizer/sccp.c
@@ -596,6 +596,21 @@ static inline int ct_eval_func_call(
596
&& ((num_args == 1 && Z_TYPE_P(args[0]) == IS_ARRAY)
597
|| (num_args == 2 && Z_TYPE_P(args[0]) == IS_STRING && Z_TYPE_P(args[1]) == IS_ARRAY)
598
|| (num_args == 2 && Z_TYPE_P(args[0]) == IS_ARRAY && Z_TYPE_P(args[1]) == IS_STRING))) {
599
+ zval *entry;
600
+
601
+ if (Z_TYPE_P(args[0]) == IS_ARRAY) {
602
+ ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(args[0]), entry) {
603
+ if (Z_TYPE_P(entry) > IS_STRING) {
604
+ return FAILURE;
605
+ }
606
+ } ZEND_HASH_FOREACH_END();
607
+ } else {
608
+ ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(args[1]), entry) {
609
610
611
612
613
614
/* pass */
615
} else {
616
return FAILURE;
0 commit comments