Pthread for php 5.6 not working

neeta asked
php
via

I have php 5.6.31 and i have insatlled Pthread php_pthreads-2.0.10-5.5-ts-vc11-x86,my computer in 64 bit,

Still found error Fatal error: Class ‘Thread’ not found in C:xampphtdocstestThread.php on line 2.

Please Help.


Answer
via

Add extension=php_pthreads.dll to your php.ini file.
See: http://php.net/manual/en/pthreads.installation.php
For Linux, add: extension=pthreads.so

Share This
Posted in: