title: PHP: Class 'Thread' not found
body: <p>I know guys, this question has been answered but belive me before I ask it I followed step by step these two questions but still having the same error.<br>
  <a href="https://stackoverflow.com/questions/15634423/pthread-not-working-in-php">pthread not working in php</a><br>
  <a href="https://stackoverflow.com/questions/22901578/php-pthreads-fatal-error-class-thread-not-found">PHP pthreads: Fatal error: Class 'Thread' not found</a></p>
  
  <p>I have added this line <code>extension=php_pthreads.dll</code> to the php.ini file located in the apache directory <code>C:\wamp\bin\apache\apache2.4.9\bin\php.ini</code>.<br>
  Also I have the file <code>pthreadVC2.dll</code> under <code>C:\wamp\bin\apache\apache2.4.9\bin</code>, and the file <code>php_pthreads.dll</code> under <code>C:\wamp\bin\php\php5.5.12\ext</code>.<br>
  After that I restarted the wamp server and checked the <code>php_pthreads</code> extension and it's activated.<br>
  <a href="https://i.stack.imgur.com/9TrHM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9TrHM.png" alt="enter image description here"></a><br>
  I did everything as described but still facing this error.<br><br>
  <strong>This is my class that extends from <code>Thread</code>:</strong><br></p>
  
  <pre><code>class MyThread extends \Thread
  {
  
      public function run()
      {
          echo 'This is a thread';
      }
  }
  </code></pre>
  
  <p>And this is how I called it:<br></p>
  
  <pre><code>$myThread = new MyThread();
  $myThread-&gt;start();
  </code></pre>