xref: /php-src/ext/opcache/tests/bug81272.phpt (revision c16ad918)
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=function
9--FILE--
10<?php
11
12function test() {
13    $newPages = array_slice([], 0, 0);
14    $newPages[] = null;
15}
16
17test();
18
19?>
20===DONE===
21--EXPECT--
22===DONE===
23