mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
ade702a0d2
Mark arrays containing partial arrays as partial. This was already done for the ADD_ARRAY_ELEMENT case, but not for ASSIGN_DIM.
29 lines
442 B
PHP
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===
|