xref: /php-src/ext/opcache/tests/bug77691.phpt (revision e9f783fc)
1--TEST--
2Bug #77691: Opcache passes wrong value for inline array push assignments
3--EXTENSIONS--
4opcache
5--FILE--
6<?php
7
8if (true) {
9    function dump($str) {
10        var_dump($str);
11    }
12}
13
14function test() {
15    $array = [];
16    dump($array[] = 'test');
17    dump($array);
18}
19
20test();
21
22?>
23--EXPECT--
24string(4) "test"
25array(1) {
26  [0]=>
27  string(4) "test"
28}
29