blauwblaatje
blauwblaatje

Reputation: 151

imap_open dies when being called

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.

Upvotes: 3

Views: 509

Answers (1)

blauwblaatje
blauwblaatje

Reputation: 151

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

Upvotes: 2

Related Questions