title: pthread not working in php
body: <p>I have downloaded the <a href="http://php.net/book.pthreads" rel="nofollow">PHP Pthreads</a> dll file from <a href="http://windows.php.net/downloads/pecl/releases/pthreads/" rel="nofollow">http://windows.php.net/downloads/pecl/releases/pthreads/</a> and enabled it in php.ini as below:</p>
  
  <pre><code>extension=pthreadVC2.dll
  extension=php_pthreads.dll
  </code></pre>
  
  <p>I have used below sample code:</p>
  
  <pre><code>&lt;?php
  class AsyncOperation extends Thread 
  {
      public function __construct($arg){
          $this-&gt;arg = $arg;
      }
  
      public function run(){
          if($this-&gt;arg){
              printf("Hello %s\n", $this-&gt;arg);
          }
      }
  }
  
  $thread = new AsyncOperation("World");
  if($thread-&gt;start())
      $thread-&gt;join();
  </code></pre>
  
  <p>when i executed the code i get the following error:</p>
  
  <blockquote>
    <p>Fatal error: Class 'Thread' not found in C:\htdocs\threads\AsyncOperation.php 
            on line 2 Call Stack: 0.0008 333464 1. {main}() 
            C:\htdocs\threads\AsyncOperation.php:0</p>
  </blockquote>