diff --git a/src/Thread.php b/src/Thread.php index 254f1f87..79d68e7b 100644 --- a/src/Thread.php +++ b/src/Thread.php @@ -32,6 +32,7 @@ if (!extension_loaded('pthreads')) { public function start() { + if (!isset($this->state)) $this->state = 0; if ($this->state & self::STARTED) { throw new \RuntimeException(); }