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