xref: /PHP-8.2/ext/opcache/tests/bug76711.phpt (revision e9f783fc)
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--EXTENSIONS--
8opcache
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