xref: /PHP-8.4/sapi/phpdbg/tests/gh13827.phpt (revision 08b2ab22)
1--TEST--
2GH-13827 (Null pointer access of type 'zval' in phpdbg_frame)
3--FILE--
4<?php
5
6$fiber = new Fiber(function () {
7    $fiber = Fiber::getCurrent();
8
9    Fiber::suspend();
10});
11
12$fiber->start();
13
14$fiber = null;
15gc_collect_cycles();
16
17?>
18--PHPDBG--
19r
20t
21q
22--EXPECTF--
23[Successful compilation of %s]
24prompt> [Uncaught GracefulExit in  on line 0: ]
25>00006:     Fiber::suspend();
26 00007: });
27 00008:
28prompt> frame #0: {closure:%s:%d}() at %s:6
29 => {closure:%s:%d} (internal function)
30prompt>
31