summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/opt/block_pass_002.phpt
blob: 38722ea49bd5069fedd221b4fd51953859977b5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Block Pass 002: QM_ASSIGN and INIT_ARRAY
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
function foo($key, $value, array $attributes) {
    return is_array($value)
        ? [$key, array_merge($value, $attributes)]
        : [$value, $attributes];
}
?>
OK
--EXPECT--
OK