xref: /php-src/Zend/tests/gh8083.phpt (revision 1f6baa77)
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 (2) {
17  ["function"]=>
18  string(4) "func"
19  ["static"]=>
20  array(1) {
21    ["i"]=>
22    NULL
23  }
24}
25