I need to add pthread extensions to php on a server,
cd pthreads
phpize
./configure
prompt
when compiling this stepconfigure: error: pthreads requires ZTS, please re-compile PHP with ZTS enabled
check whether it needs to be recompiled. Add-enable-maintainer-zts
now I have a few questions. I didn"t equip the server
1 at the beginning. I don"t know the configuration I used when compiling. If I compile directly according to the configuration on the Internet, will it lead to some configuration loss? I saw a php-config, that looked up and seemed to save the original configuration. Can I use something like-- with-php-config=/usr/local/php/bin/php-config to make sure that the configuration is the same as the last compilation, and then add-enable-maintainer-zts
, that is,
./configure --with-php-config=/usr/local/php/bin/php-config enable-maintainer-zts
2 I used to use window development, did not take care of the server, only slightly according to the online documentation to install the environment, before compiling what is done in the installation package extracted after the directory, but now this seems to be unable to find the original installation package, then I have to download the same version of the php installation package to compile it?