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 698ac23 commit 1f58365Copy full SHA for 1f58365
ext/opcache/Optimizer/zend_inference.c
@@ -2636,9 +2636,6 @@ static zend_always_inline int _zend_update_type_info(
2636
tmp |= MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_STRING;
2637
}
2638
2639
- if (t1 & MAY_BE_OBJECT) {
2640
- tmp |= MAY_BE_REF;
2641
- }
2642
tmp |= MAY_BE_RC1 | MAY_BE_RCN;
2643
UPDATE_SSA_TYPE(tmp, ssa_op->result_def);
2644
ext/opcache/tests/jit/assign_dim_008.phpt
@@ -0,0 +1,18 @@
1
+--TEST--
2
+JIT ASSIGN_DIM: 008
3
+--INI--
4
+opcache.enable=1
5
+opcache.enable_cli=1
6
+opcache.file_update_protection=0
7
+opcache.jit_buffer_size=1M
8
+--FILE--
9
+<?php
10
+function(int $a) {
11
+ $arr = $a[] = (y);
12
+ $arr = y;
13
+ $c = $y = $arr[] = y($c);
14
+}
15
+?>
16
+DONE
17
+--EXPECT--
18
0 commit comments