1--TEST--
2possible segfault in `ZEND_FUNC_GET_ARGS`
3--EXTENSIONS--
4zend_test
5--ENV--
6USE_ZEND_ALLOC=1
7--INI--
8zend_test.observe_opline_in_zendmm=1
9--FILE--
10<?php
11
12function ref() {
13    return func_get_args();
14}
15
16class Foo {
17    public static int $i;
18    public static string $s = "x";
19}
20
21var_dump(Foo::$i = "1");
22var_dump(Foo::$s, Foo::$i);
23var_dump(ref('string', 0));
24
25echo 'Done.';
26?>
27--EXPECT--
28int(1)
29string(1) "x"
30int(1)
31array(2) {
32  [0]=>
33  string(6) "string"
34  [1]=>
35  int(0)
36}
37Done.
38