1--TEST--
2Reference to invocable class retained while running
3--FILE--
4<?php
5
6class Test {
7    public function __invoke() {
8        $GLOBALS['test'] = null;
9        var_dump($this);
10        try {
11            Fiber::suspend();
12        } finally {
13            var_dump($this);
14        }
15    }
16}
17
18$test = new Test;
19$fiber = new Fiber($test);
20$fiber->start();
21
22?>
23--EXPECTF--
24object(Test)#%d (0) {
25}
26object(Test)#%d (0) {
27}
28