summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/bug77691.phpt
blob: 22726a36a0d582b433b189e93f6d0bd13779a70a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--TEST--
Bug #77691: Opcache passes wrong value for inline array push assignments
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php

if (true) {
    function dump($str) {
        var_dump($str);
    }
}

function test() {
    $array = [];
    dump($array[] = 'test');
    dump($array);
}

test();

?>
--EXPECT--
string(4) "test"
array(1) {
  [0]=>
  string(4) "test"
}