{Code...} does not know why. Do you have such a situation?
[hyper@localhost:/home/hyper/pthreads-master/]$ make/usr/bin/make64 MAC=64/bin/sh /home/hyper/pthreads-master/libtool --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I.
PHP pthreads Multi-threaded installation and use, Pthreads multithreading
Install pthreads basically need to recompile PHP, plus--enable-maintainer-zts parameters, but with this document very few, bug will be many very many unexpected problems,
Install php extension pthreads to implement PHP multithreading. the following two compilation methods are introduced:
1. compile pthreads extension on existing PHP
Note: The pthreads module needs to be dynamically loaded. before compiling php, -
Pthreads multi-thread data collection and pthreads data collection. Pthreads multi-thread data collection, pthreads data collection used to use curl multithreading is not really multi-thread, but a simulated multi-thread. now pthreads is used to
Here are two ways to compile:
1. Compiling pthreads extensions on existing PHP
Note: You need to dynamically load the Pthreads module, you must enable--ENABLE-MAINTAINER-ZTS before compiling PHP, otherwise you will need to recompile PHP.
Pthreads (4) php7 only supports the use of pthreads extension 1 ERROR in cli mode!
Php 7 is used, and extensions are installed after Compilation. When php-fpm is run, an error is reported. The problem is not solved in the company. go home and
Here are two ways to compile:1. Compiling pthreads extensions on existing PHPNote: You need to dynamically load the Pthreads module, you must enable--ENABLE-MAINTAINER-ZTS before compiling PHP, otherwise you will need to recompile PHP.pthreads
Native configuration:
Apache:2.2-x86
php:5.4 ts-x86
System: Windows 64
Pthreads ConfigurationDownload Address: http://windows.php.net/downloads/pecl/releases/pthreads/2.0.9/
Pthreads 5.4 Under Two files:Php_pthreas.dll and
Pthreads Multithreading data acquisition, PTHREADS data acquisition
Multithreading, formerly using Curl, is not really multi-threading, just a simulation of multi-threading, now using Pthreads to achieve the true meaning of multithreading.
Download:
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.