File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ static ZEND_STACK_ALIGNED void zend_test_fiber_execute(zend_fiber_transfer *tran
9191 execute_data = (zend_execute_data * ) stack -> top ;
9292
9393 memset (execute_data , 0 , sizeof (zend_execute_data ));
94+ execute_data -> func = (zend_function * ) & zend_pass_function ;
9495
9596 EG (current_execute_data ) = execute_data ;
9697 EG (jit_trace_num ) = 0 ;
Original file line number Diff line number Diff line change 1+ --TEST--
2+ GH-16230: Segfault on debug_backtrace() inside _ZendTestFiber
3+ --EXTENSIONS--
4+ zend_test
5+ --FILE--
6+ <?php
7+ $ test = new _ZendTestFiber (function (): void {
8+ var_dump (debug_backtrace ());
9+ });
10+ $ test ->start ();
11+ ?>
12+ --EXPECT--
13+ array(1) {
14+ [0]=>
15+ array(2) {
16+ ["function"]=>
17+ string(9) "{closure}"
18+ ["args"]=>
19+ array(0) {
20+ }
21+ }
22+ }
You can’t perform that action at this time.
0 commit comments