1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/opcache/tests/bug76711.phpt

20 lines
335 B
PHP

--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"