GrandMasterX / php-multithreading

multithreading for php
MIT License
4 stars 0 forks source link

PHP Fatal Error – yii\base\ErrorException #1

Open chinmay235 opened 7 years ago

chinmay235 commented 7 years ago

I have followed your document. Here is getting error message. Could you pleae check.

PHP Fatal Error – yii\base\ErrorException Class 'php\multithreading\Exception' not found

Code:

$start = microtime(true);
require(__DIR__ . '/../../vendor/grandmasterx/yii2-multithreading/Threads.php');
$threads = new Threads;
$threads->newThread(dirname(__FILE__).'/file.php', array());
while (false !== ($result = $threads->iteration())) {
  if (!empty($result)) {
      echo $result."\r\n";
   }
}
echo (date("H:i:s"));
$end = microtime(true);
echo "Execution time ".round($end - $start, 2)."\r\n";
die;
chinmay235 commented 7 years ago

Anyone help me...

chetan8300 commented 6 years ago

Comment Exception class declaration in Threads.php