My PHP version is the 5.6.16 system is a 64-bit download pthread for Php_pthreads-2.0.8-5.6-ts-vc11-x64.zip Compiler MSVC11 viewed from phpinfo (Visual C + + 2012) For VC11, the version corresponds to the
My path is E:\wamp64\bin\php\php5.6.16\.
Put the Php_pthreads.dll in the E:\wamp64\bin\php\php5.6.16\ext\ directory.
, put the PthreadVC2.dll in the E:\wamp64\bin\php\php5.6.16\ directory,
At the same time put the PthreadVC2.dll in the System32 directory,
Also added environment variables, CONFIGURED Apache http.conf add LoadFile "E:/wamp64/bin/php/php5.6.16/pthreadvc2.dll"
Modified the php.ini Extension=php_pthreads.dll
After restarting Apache, execute the following code
Class AsyncOperation extends Thread {public function __construct ($arg) { $this->arg = $arg; } Public Function Run () { if ($this->arg) { printf ("Hello%s\n", $this->arg); } }} $thread = new AsyncOperation ("World"), if ($thread->start ()) $thread->join ();
Still prompt
Class ' Thread ' not found
Ask about the reasons why you may be
Reply to discussion (solution)
Phpinfo function to see if the load is successful?
http://m.blog.csdn.net/article/details?id=19020161
http://m.blog.csdn.net/article/details?id=19020161
Follow this tutorial to prompt the class ' Thread ' not found phpinfo display is not loaded on Php_pthread
At the same time put the PthreadVC2.dll in the System32 directory,
This tutorial does not have this operation.
At the same time put the PthreadVC2.dll in the System32 directory,
This tutorial does not have this operation.
No, because after following this tutorial, you are not prompted to find this class, so refer to the other tutorials
Later refer to this tutorial http://www.thinkphp.cn/topic/22676.html
Look at the official http://docs.php.net/manual/zh/book.pthreads.php.
It seems that there is no installation success, see phpinfo there is no.
Look at the official http://docs.php.net/manual/zh/book.pthreads.php.
It seems that there is no installation success, see phpinfo there is no.
Phpinfo No
Look at the official http://docs.php.net/manual/zh/book.pthreads.php.
Either the official documents are added or the thread is not found
Phpinfo does not indicate that the installation failed, change the installation of another version to see.
Configuration error, guided
Thank you for your warm-hearted solution to the problem has been resolved in accordance with the Http://docs.php.net/manual/zh/book.pthreads.php official tutorial configuration of my integrated environment Wamp in the php.ini configuration in the use of PHP under the php.ini , but the wamp load is not this php.ini later through the Wamp icon to find the php.ini open configuration, only can display