xref: /php-src/Zend/tests/gh10072-2.phpt (revision 44add3c7)
1--TEST--
2GH-10072 (PHP crashes when execute_ex is overridden and a trampoline is used from internal code during shutdown)
3--EXTENSIONS--
4zend_test
5--INI--
6zend_test.replace_zend_execute_ex=1
7opcache.jit=disable
8--FILE--
9<?php
10
11class TrampolineTest {
12    public function __call(string $name, array $arguments) {
13        echo 'Trampoline for ', $name, PHP_EOL;
14    }
15}
16
17register_shutdown_function([new TrampolineTest(), 'shutdown']);
18?>
19--EXPECT--
20Trampoline for shutdown
21