php-src/ext/opcache/tests/bug81272.phpt
Nikita Popov c14c82e22f Merge branch 'PHP-8.0'
* PHP-8.0:
  Fix bug #81272: Fix func info for functions returning EMPTY_ARRAY
2021-07-20 14:41:43 +02:00

24 lines
329 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_buffer_size=16M
opcache.jit=function
--FILE--
<?php
function test() {
$newPages = array_slice([], 0, 0);
$newPages[] = null;
}
test();
?>
===DONE===
--EXPECT--
===DONE===