title: How to get pthreads working in PHP?
body: <p>I am using wampserver to test &amp; run wordpress code in my local computer. In order to run pthread, I have followed the following steps:</p>
  
  <p>1) I got the pthread zip file from <a href="http://windows.php.net/downloads/pecl/releases/pthreads/0.44/" rel="nofollow">http://windows.php.net/downloads/pecl/releases/pthreads/0.44/</a>
  (My machine has php 5.3.13 and downloaded the <code>php_pthreads-0.44-5.3-ts-vc9-x86.zip file</code> from the above link).</p>
  
  <p>2) Extracted the zip file. Moved the php_pthreads.dll to the <code>C:\wamp\bin\php\php5.3.13\ext</code> directory.</p>
  
  <p>3) Moved pthreadVC2.dll to the <code>C:\wamp\bin\php\php5.3.13</code> directory.</p>
  
  <p>4) Then Opened <code>C:\wamp\bin\php\php5.3.13\php.ini</code> and added the code <code>extension=php_pthreads.dll</code> at the begining of the file.</p>
  
  <p>But when I try to run the following code:</p>
  
  <pre><code>&lt;?php
  class My extends Thread {
      public function run() {
          printf("%s is Thread #%lu\n", __CLASS__, $this-&gt;getThreadId());
      }
  }
  $my = new My();
  $my-&gt;start();
  ?&gt;
  </code></pre>
  
  <p>It gives me the following error:</p>
  
  <p><code>Fatal error: Class 'Thread' not found in C:\wamp\www\wp-admin\includes\post.php on line 2</code></p>
  
  <p>Can you please tell me how to install pthreads in my computer to use with php? and do I have to install any other software? </p>