mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
c16ad918ba
https://wiki.php.net/rfc/jit_config_defaults Closes GH-12678
23 lines
301 B
PHP
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===
|