PHP 5.3 的 uploadprogress.so ?
我在 OS 10.6.2 上使用 XAMPP(最新版本),它与 PHP 5.3.0 捆绑在一起。
我为 PHP 源/头文件安装了 XAMPP 开发包,并从终端运行以下命令 -
sudo ./pecl install uploadprogress
一切似乎都工作正常。我的 php.ini 文件(是的 - 我检查过它与 phpinfo()
中加载的文件相同)具有 extension=uploadprogress.so
很好,我通过以下方式重新启动了 apache:
sudo ./apachectl restart
... 在我的 xamppfiles/bin 目录下。
问题是,uploadprogress 扩展未显示在 phpinfo()
上。
我想不出我错过了什么。我没有收到 Apache/PHP 重新启动错误,指出扩展无法加载、不兼容或其他任何情况。
我错过了一些明显的东西吗?提前致谢。
I'm using XAMPP (latest version) on OS 10.6.2, that's bundled with PHP 5.3.0
I installed the XAMPP development package for the PHP source/header files and ran the following command from Terminal-
sudo ./pecl install uploadprogress
Everything appeared to work fine. My php.ini file (yup - I checked it's the same one being loaded in phpinfo()
) has the extension=uploadprogress.so
in there fine, and I restarted apache via:
sudo ./apachectl restart
... under my xamppfiles/bin directory.
The issue is, the uploadprogress extension is not shown on phpinfo()
.
I can't think what I'm missing. I didn't get an Apache/PHP restart errors stating the extension couldn't be loaded, or is incompatible or anything.
Am I missing something obvious? Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
更新--
我解决了问题。需要添加到配置行的是 Snow Leopard 64 位编译标志!
对于发现自己处于这种情况的任何人的信息,这些是执行的确切步骤 -
然后编辑 /Applications/XAMPP/xamppfiles/etc/php.ini 并确保在某处添加以下内容:
重新启动Apache 和瞧,它成功了。耶。
UPDATE--
I fixed the problem. It was the Snow Leopard 64bit compile flags that needed adding to the configure line!
For the information of anyone who finds themselves in this scenario, these are the exact steps performed-
Then edit /Applications/XAMPP/xamppfiles/etc/php.ini and make sure the following is added somewhere:
Restart Apache and voila, it worked. Yay.
已确认 @Lee 的解决方案适用于 Mac OSX Lion (10.7.3) + XAMPP 1.7.3(已安装开发人员打包版)。唯一的变化是 XAMPP 上的 php 已升级,因此他使用“5.3.0” — 更改为“5.3.1”
Confirmed @Lee's solution works on Mac OSX Lion (10.7.3) + XAMPP 1.7.3 (with developer packaged installed). Only change is php on XAMPP has been upgraded so where he uses "5.3.0" — change to "5.3.1"
据我所知,您需要启用 APC 才能使其工作。
尝试在 php.ini 中启用该扩展,看看是否可以解决问题!
As far as I know, you need APC enabled in order for this to work.
Try enabling the extension in your php.ini and see if that fixes it!