1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 06:51:18 +02:00
Files
archived-php-src/ext/opcache/tests/bug81272.phpt
Nikita Popov 051ff33660 Fix bug #81272: Fix func info for functions returning EMPTY_ARRAY
The empty array has refcount > 1, so we should indicate this in
func info. In most cases this renders the func info redundant,
so drop it entirely.
2021-07-20 14:40:17 +02:00

22 lines
306 B
PHP

--TEST--
Bug #81272: Segfault in var[] after array_slice with JIT
--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===