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