imap_open() 使 Apache 崩溃
在 Windows 7 64 位上使用 Apache 2.2.17 和 PHP 5.3.4 运行 Wamp 2.0
我调用 imap_open() 连接到 Gmail(端口 993 上的 imap.googlemail.com),
$server_spec = "{imap.googlemail.com:993/imap/ssl}INBOX";
$mbox = imap_open ($server_spec, $username, $password);
但网页显示连接已重置。我的日志中没有出现任何错误。
但是,如果我检查 Windows 事件查看器,我会看到:
Faulting application name: httpd.exe, version: 2.2.17.0, time stamp: 0x4cc419ce
Faulting module name: php_imap.dll, version: 5.3.4.0, time stamp: 0x4d090506
Exception code: 0x80000003
Fault offset: 0x000000000004ac04
Faulting process id: 0x3420
Faulting application start time: 0x01cc98a7507af588
Faulting application path: C:\wamp\bin\apache\apache2.2.17\bin\httpd.exe
Faulting module path: c:\wamp\bin\php\php5.3.4\ext\php_imap.dll
Report Id: 9585a82f-049a-11e1-a83a-180373772b48
谷歌搜索并没有发现太多错误,我已手动取消注释 php_imap 的 php.ini 文件。我还启用了 mod_ssl。
我是不是忘记了一些基本的东西?
Running Wamp 2.0 on Windows 7 64-bit with Apache 2.2.17 and PHP 5.3.4
I call imap_open() to connect to Gmail (imap.googlemail.com on port 993)
$server_spec = "{imap.googlemail.com:993/imap/ssl}INBOX";
$mbox = imap_open ($server_spec, $username, $password);
But the webpage says the Connection was reset. I have no errors appearing in my logs.
But if I check Windows event viewer I see:
Faulting application name: httpd.exe, version: 2.2.17.0, time stamp: 0x4cc419ce
Faulting module name: php_imap.dll, version: 5.3.4.0, time stamp: 0x4d090506
Exception code: 0x80000003
Fault offset: 0x000000000004ac04
Faulting process id: 0x3420
Faulting application start time: 0x01cc98a7507af588
Faulting application path: C:\wamp\bin\apache\apache2.2.17\bin\httpd.exe
Faulting module path: c:\wamp\bin\php\php5.3.4\ext\php_imap.dll
Report Id: 9585a82f-049a-11e1-a83a-180373772b48
Googling the error hasn't come up with much, I've manually uncommented the php.ini file for php_imap. I also have enabled mod_ssl.
Have I forgotten something basic?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从技术上讲这不是一个“答案” - 但下载最新的 Wamp 包(apache 2.2.21 + php 5.3.8)修复了这个问题
Not an "answer" technically - but downloading the latest Wamp package (apache 2.2.21 + php 5.3.8) fixes the issue