xref: /PHP-8.1/Zend/tests/gh8083.phpt (revision 19063a84)
1--TEST--
2GH-8083 (var_dump() on closure with static variable segfaults)
3--FILE--
4<?php
5
6function func() {
7    static $i;
8}
9
10$x = func(...);
11
12var_dump($x);
13
14?>
15--EXPECT--
16object(Closure)#1 (1) {
17  ["static"]=>
18  array(1) {
19    ["i"]=>
20    NULL
21  }
22}
23