1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 03:32:20 +02:00
Files
archived-php-src/Zend/tests/gh8083.phpt
2022-08-12 12:22:55 +02:00

25 lines
285 B
PHP

--TEST--
GH-8083 (var_dump() on closure with static variable segfaults)
--FILE--
<?php
function func() {
static $i;
}
$x = func(...);
var_dump($x);
?>
--EXPECT--
object(Closure)#1 (2) {
["function"]=>
string(4) "func"
["static"]=>
array(1) {
["i"]=>
NULL
}
}