php-src/ext/opcache/tests/bug81272.phpt
2024-01-15 09:39:13 +01:00

23 lines
301 B
PHP

--TEST--
Bug #81272: Segfault in var[] after array_slice with JIT
--EXTENSIONS--
opcache
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.jit=function
--FILE--
<?php
function test() {
$newPages = array_slice([], 0, 0);
$newPages[] = null;
}
test();
?>
===DONE===
--EXPECT--
===DONE===