PHP installation pthread prompt Class ' Thread ' not found

Source: Internet
Author: User
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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.