--TEST-- Test order of destruction not interfering with access to UV handles --SKIPIF-- --FILE-- handle = Loop::repeat(10, function () {}); } public function __destruct() { Loop::cancel($this->handle); print "ok"; } }); Loop::delay(0, [Loop::class, "stop"]); }); ?> --EXPECT-- ok