1--TEST--
2exit() as function
3--FILE--
4<?php
5
6function foo(callable $fn) {
7    var_dump($fn);
8}
9
10$values = [
11    'exit',
12    'die',
13    exit(...),
14    die(...),
15];
16
17foreach ($values as $value) {
18    foo($value);
19}
20
21?>
22--EXPECT--
23string(4) "exit"
24string(3) "die"
25object(Closure)#1 (2) {
26  ["function"]=>
27  string(4) "exit"
28  ["parameter"]=>
29  array(1) {
30    ["$status"]=>
31    string(10) "<optional>"
32  }
33}
34object(Closure)#2 (2) {
35  ["function"]=>
36  string(4) "exit"
37  ["parameter"]=>
38  array(1) {
39    ["$status"]=>
40    string(10) "<optional>"
41  }
42}
43