1--TEST-- 2Bug #81272: Segfault in var[] after array_slice with JIT 3--EXTENSIONS-- 4opcache 5--INI-- 6opcache.enable=1 7opcache.enable_cli=1 8opcache.jit_buffer_size=16M 9opcache.jit=function 10--FILE-- 11<?php 12 13function test() { 14 $newPages = array_slice([], 0, 0); 15 $newPages[] = null; 16} 17 18test(); 19 20?> 21===DONE=== 22--EXPECT-- 23===DONE=== 24