1--TEST--
2Suspend outside fiber
3--EXTENSIONS--
4fiber
5--FILE--
6<?php
7
8$value = Fiber::suspend(1);
9
10?>
11--EXPECTF--
12Fatal error: Uncaught FiberError: Cannot suspend outside of a fiber in %ssuspend-outside-fiber.php:%d
13Stack trace:
14#0 %ssuspend-outside-fiber.php(%d): Fiber::suspend(1)
15#1 {main}
16  thrown in %ssuspend-outside-fiber.php on line %d
17