xref: /PHP-8.3/Zend/tests/fibers/gh10340-002.phpt (revision 98302042)
1--TEST--
2Bug GH-10340 002 (Assertion in zend_fiber_object_gc())
3--FILE--
4<?php
5function f() {
6    $y = 'a';
7    $$y = Fiber::getCurrent();
8    Fiber::suspend();
9}
10$fiber = new Fiber(function() {
11    get_defined_vars();
12    f();
13});
14$fiber->start();
15gc_collect_cycles();
16?>
17==DONE==
18--EXPECT--
19==DONE==
20