Thread Usage in PHP

0

I'm trying to use threads in PHP but the "install" process is not working. I'll describe what I'm doing.

ERROR I GET:

  

Fatal error: Class 'Thread' not found in.

1.Preview of my php. OBS.Using WAMP

versão 7.0.10

2.I am downloading the files from this site

link

To be more accurate this one I'm downloading

php_pthreads-0.0.44-5.3-ts-vc9-x86

3.I am doing what is indicated in the documentation.

3.1 Extract .zip -

Move php_pthreads.dll to the bin\php\ext\ directory

Move pthreadVC2.dll to the bin\php\ directory.

Move pthreadVC2.dll to the bin\apache\bin directory.

Move pthreadVC2.dll to the C:\windows\system32 directory.

3.2 Open php \ php.ini and add

Extension = php_pthreads.dll

4. These are the paths I'm installing.

4.1.I am moving the php_pthreads.dll file to

C:\wamp\bin\php\php7.0.10\ext

4.2. I'm moving the file pthreadVC2.dll to

C:\wamp\bin\php\php7.0.10

4.3 I'm moving the file pthreadVC2.dll to

C:\wamp\bin\apache\apache2.4.23\bin

4.4 I'm moving the file pthreadVC2.dll to

C:\Windows\System32

5.Finally

I'm putting the name

Extension = php_pthreads.dll

in the file ini

    
asked by anonymous 14.02.2017 / 19:06

1 answer

1

You are trying to install the version that is not compatible with php currently installed. From what I noticed the version used is:

C:\wamp\bin\php\php7.0.10

And you're trying to install a version of the library for php 5.3.x. For versions 7.x of php vc you need the pthreads library in your version 3.x

Check out the windows pthreads link. And install the latest version as per your php.

    
14.02.2017 / 19:13