mirror of
https://github.com/php/php-src.git
synced 2025-01-07 11:34:09 +08:00
c14c82e22f
* PHP-8.0: Fix bug #81272: Fix func info for functions returning EMPTY_ARRAY
24 lines
329 B
PHP
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===
|