xref: /PHP-8.4/Zend/tests/gh14003.phpt (revision b3e26c30)
1--TEST--
2GH-14003: Missing handling of CALLABLE_CONVERT in cleanup_unfinished_calls()
3--FILE--
4<?php
5
6function foo(string $key): string {
7    throw new \Exception('Test');
8}
9
10array_filter(
11    array_combine(
12        ['a'],
13        array_map(foo(...), ['a']),
14    ),
15);
16
17?>
18--EXPECTF--
19Fatal error: Uncaught Exception: Test in %s:%d
20Stack trace:
21#0 [internal function]: foo('a')
22#1 %s(%d): array_map(Object(Closure), Array)
23#2 {main}
24  thrown in %s on line %d
25