php-src/ext/opcache/tests/bug77434.phpt
Nikita Popov ade702a0d2 Fixed bug #77434
Mark arrays containing partial arrays as partial. This was already
done for the ADD_ARRAY_ELEMENT case, but not for ASSIGN_DIM.
2019-01-10 10:25:55 +01:00

29 lines
442 B
PHP

--TEST--
Bug #77434: php-fpm workers are segfaulting in zend_gc_addref
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
function test(int $x) {
$a = ['a' => 0, 'b' => $x];
$b = [];
$b[0] = $a;
$c = $b[0];
}
function test2(int $x) {
$a = ['a' => 0, 'b' => $x];
$b = [$a];
$c = $b[0];
}
?>
===DONE===
--EXPECT--
===DONE===