linux中XAMPP中的Pthreads [英] Pthreads in XAMPP in linux

查看:72
本文介绍了linux中XAMPP中的Pthreads的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

至于pthreads库,PHP必须用ZTS编译.这可以在linux的XAMPP中安装Pthreads吗.因为对于windows XAMPP,它可能没有任何问题.

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.

您能否更正我的此安装方案或与 XAMPP 的链接?谢谢

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

推荐答案

PHP 默认自带 PECL(PHP 扩展社区库)命令支持,省去了我们手动编译扩展的麻烦.我们可以改为运行下面的安装命令.

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

扩展现在已成功安装,我们现在必须将要加载的扩展包含在php.ini"配置文件中.我们可以通过运行并检查以下命令的输出来测试扩展是否已成功加载到 PHP 解释器中.

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

使用 ZTS 和 pthreads 编译 PHP 5.5支持

这篇关于linux中XAMPP中的Pthreads的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆