php-zmq 未显示在 phpinfo() 页面上 [英] php-zmq is not shown on phpinfo() page

查看:26
本文介绍了php-zmq 未显示在 phpinfo() 页面上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 上使用 Wamp Server 并安装了 zmq 库.当我在控制台上写 php --info 时,我看到 zmq 显示为已安装.

I am using Wamp Server on Windows and I installed zmq library. When I write php --info on console, I see that zmq is shown as intalled.

zmq

ZMQ 扩展 =>启用

ZMQ extension => enabled

ZMQ 扩展版本 =>1.1.2

ZMQ extension version => 1.1.2

libzmq 版本 =>3.2.2

libzmq version => 3.2.2

但是当我使用 phpinfo() 函数创建一个 php 页面来显示 php 配置时,它没有显示任何关于 zmq 的内容.另外,它无法找到 ZMQContext 和其他 ZMQ 类,如 ZMQSocket.我想它没有完全安装,但我不知道该怎么办了.我已经用所需信息修改了两个 php.ini 文件.

But when I create a php page with phpinfo() function to show php configuration, it does not show anything about zmq. Plus, it is unable to find ZMQContext and other ZMQ classes, like ZMQSocket. I guess it's not fully installed, but I don't know what to do anymore. I have already modified both php.ini files with required info.

C:\wamp\bin\php\php5.5.12\php.ini

C:\wamp\bin\php\php5.5.12\php.ini

[ZMQ]

extension=php_zmq.dll

extension=php_zmq.dll

C:\wamp\bin\apache\apache2.4.9\bin\php.ini

C:\wamp\bin\apache\apache2.4.9\bin\php.ini

[ZMQ]

extension=php_zmq.dll

extension=php_zmq.dll

有人知道为什么吗?

推荐答案

我知道这是旧线程;但是,我遇到了同样的问题,我花了一些时间来解决这个问题.修复方法是在 httpd.conf 文件中添加以下行

I know this is old thread; however, I had the same problem and it took me time to fix the problem. The fix is to add following line in httpd.conf file

LoadFile "D:/xampp/php/libzmq.dll"

这篇关于php-zmq 未显示在 phpinfo() 页面上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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