summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/bug76711.phpt
blob: 781312503b5621704410777fe8921575360af44e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Bug #76711 OPcache enabled triggers false-positive "Illegal string offset"
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
function test($foo) {
    var_dump(0);
    var_dump($foo[0]);
}
test("str");
?>
--EXPECT--
int(0)
string(1) "s"