From 3aef7653a4d8c0a614fe14da3b6da08cdb5c0499 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 28 May 2017 00:50:22 +0100 Subject: [PATCH] Small fix --- src/Thread.php | 1 + 1 file changed, 1 insertion(+) 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(); }