xref: /PHP-7.3/ext/opcache/tests/bug74019.phpt (revision 185304a6)
1--TEST--
2Bug #74019	(Segfault with list)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6--SKIPIF--
7<?php require_once('skipif.inc'); ?>
8--FILE--
9<?php
10
11class A {
12	public function seg() {
13		list($a, $b) = A::CONSTS;
14		var_dump($a, $b);
15		return;
16	}
17	const CONSTS = [1, 2];
18}
19
20$a = new A;
21$a->seg();
22?>
23--EXPECT--
24int(1)
25int(2)
26