--TEST-- Fiber status methods --EXTENSIONS-- fiber --FILE-- isStarted()); var_dump($fiber->isRunning()); var_dump($fiber->isSuspended()); var_dump($fiber->isTerminated()); Fiber::suspend(); }); echo "\nBefore Start:\n"; var_dump($fiber->isStarted()); var_dump($fiber->isRunning()); var_dump($fiber->isSuspended()); var_dump($fiber->isTerminated()); $fiber->start(); echo "\nAfter Start:\n"; var_dump($fiber->isStarted()); var_dump($fiber->isRunning()); var_dump($fiber->isSuspended()); var_dump($fiber->isTerminated()); $fiber->resume(); echo "\nAfter Resume:\n"; var_dump($fiber->isStarted()); var_dump($fiber->isRunning()); var_dump($fiber->isSuspended()); var_dump($fiber->isTerminated()); ?> --EXPECT-- Before Start: bool(false) bool(false) bool(false) bool(false) Within Fiber: bool(true) bool(true) bool(false) bool(false) After Start: bool(true) bool(false) bool(true) bool(false) After Resume: bool(true) bool(false) bool(false) bool(true)