--TEST-- Fiber interaction with custom fiber implementation 3 --EXTENSIONS-- zend_test --FILE-- start()); // NULL echo "unreachable\n"; // Test fiber throws. return 1; }); $value = $fiber->start(); var_dump($value); // int(1) $value = $fiber->resume(2 * $value); var_dump($value); // int(3) $value = $fiber->throw(new Exception('test')); ?> --EXPECTF-- int(1) int(2) int(3) Fatal error: Uncaught Exception: test in %sfiber_test_03.php:%d Stack trace: #0 {main} thrown in %sfiber_test_03.php on line %d