Skip to content

Commit ade5474

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
2 parents 2957651 + 4c68aaa commit ade5474

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

ext/opcache/tests/bug77691.phpt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)