Pthreads in XAMPP in linux

三世轮回 提交于 2019-12-23 05:29:37

问题


As for pthreads library,PHP must be compile with ZTS.Is this possible to install Pthreads in XAMPP in linux.Because for windows XAMPP,it may be not any issue.

Can you please correct my scenario for this installations or links with XAMPP? Thanks


回答1:


PHP comes with PECL (PHP Extension Community Library) command support by default, which saves us the hassle of having to compile the extension manually. We can instead just run the installation command below.

$ pecl install pthreads

$ echo "extension=pthreads.so" >> /etc/php.ini

With the extension now successfully installed, we must now include the extension to be loaded in the 'php.ini' configuration file. We can test that the extension has been successfully loaded with the PHP interpretor by running and inspecting the output from the following command.

$ php -m | grep pthreads

More detail you will get from below link

Compiling PHP 5.5 with ZTS and pthreads Support




回答2:


in recent Linux OS systems pthread is already available.

for usage check yolinux.com



来源:https://stackoverflow.com/questions/25841369/pthreads-in-xampp-in-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!