imap_open 被调用时死亡
我有以下代码:
打印“foo”;
imap_open("{localhost:143/imap/notls}", "myname", "mypass");
打印“栏”;
剧本死了。我得到零响应,没有来自 apache 的任何响应,没有“foo”或“bar”,什么也没有。
但是,我可以连接到 imap 服务器(nc localhost ...),我也可以将脚本放在另一台服务器上并连接到同一个 imap 服务器。所以,我认为该服务器上的 php 有问题。但我不知道我错过了什么、忘记了什么或没有安装什么。 phpinfo() 告诉我 php 已配置 --with-imap 和 --with-imap-ssl。顺便说一句,操作系统是 CentOS。
I've got the following code:
print "foo";
imap_open("{localhost:143/imap/notls}", "myname", "mypass");
print "bar";
The script dies. I get zero responds, nothing from apache, no "foo" or "bar", nothing.
I can however connect to the imap server (nc localhost ...), I can also put the script on another server and connect to the same imap server. So, I think there's something wrong with the php on this server. But I can't figure out what I'm missing, forgetting or didn't install.
phpinfo() tells me php is configured --with-imap and --with-imap-ssl. The OS is CentOS, btw.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,抱歉...所以答案是这样的::)
好的,找到问题了。 libc_client 是针对 FD_SETSIZE 设置为低的头文件进行编译的。由于该服务器是共享托管服务器,因此它崩溃了,因为打开的文件描述符太多......重新编译 libc_client 就成功了
Hm, sorry... So the answer is this: :)
Ok, found the problem. libc_client was compiled against a header file with FD_SETSIZE set low. With this server being a shared hosting server, it had crashed because there were too many open file descriptors... Recompile of libc_client did the trick