xref: /PHP-8.2/ext/zend_test/tests/gh16230.phpt (revision 5955ce89)
1--TEST--
2GH-16230: Segfault on debug_backtrace() inside _ZendTestFiber
3--EXTENSIONS--
4zend_test
5--FILE--
6<?php
7$test = new _ZendTestFiber(function (): void {
8    var_dump(debug_backtrace());
9});
10$test->start();
11?>
12--EXPECT--
13array(1) {
14  [0]=>
15  array(2) {
16    ["function"]=>
17    string(9) "{closure}"
18    ["args"]=>
19    array(0) {
20    }
21  }
22}
23