mirror of
https://github.com/php/php-src.git
synced 2026-04-29 03:03:26 +02:00
d3f1f3ab40
We don't always have the line and filename in a backtrace frame, but phpdbg assumes we do. Closes GH-13831.
31 lines
479 B
PHP
31 lines
479 B
PHP
--TEST--
|
|
GH-13827 (Null pointer access of type 'zval' in phpdbg_frame)
|
|
--FILE--
|
|
<?php
|
|
|
|
$fiber = new Fiber(function () {
|
|
$fiber = Fiber::getCurrent();
|
|
|
|
Fiber::suspend();
|
|
});
|
|
|
|
$fiber->start();
|
|
|
|
$fiber = null;
|
|
gc_collect_cycles();
|
|
|
|
?>
|
|
--PHPDBG--
|
|
r
|
|
t
|
|
q
|
|
--EXPECTF--
|
|
[Successful compilation of %s]
|
|
prompt> [Uncaught GracefulExit in on line 0: ]
|
|
>00006: Fiber::suspend();
|
|
00007: });
|
|
00008:
|
|
prompt> frame #0: {closure}() at %s:6
|
|
=> {closure} (internal function)
|
|
prompt>
|