xref: /PHP-8.2/ext/opcache/tests/bug74019.phpt (revision e9f783fc)
1--TEST--
2Bug #74019	(Segfault with list)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6--EXTENSIONS--
7opcache
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