xref: /php-src/ext/zend_test/tests/gh16230.phpt (revision 253f4af9)
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--EXPECTF--
13array(1) {
14  [0]=>
15  array(2) {
16    ["function"]=>
17    string(%d) "{closure:%s:%d}"
18    ["args"]=>
19    array(0) {
20    }
21  }
22}
23