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.
2 parents 2957651 + 4c68aaa commit ade5474Copy full SHA for ade5474
ext/opcache/tests/bug77691.phpt
@@ -0,0 +1,26 @@
1
+--TEST--
2
+Bug #77691: Opcache passes wrong value for inline array push assignments
3
+--FILE--
4
+<?php
5
+
6
+if (true) {
7
+ function dump($str) {
8
+ var_dump($str);
9
+ }
10
+}
11
12
+function test() {
13
+ $array = [];
14
+ dump($array[] = 'test');
15
+ dump($array);
16
17
18
+test();
19
20
+?>
21
+--EXPECT--
22
+string(4) "test"
23
+array(1) {
24
+ [0]=>
25
+ string(4) "test"
26
0 commit comments