|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2004-08-04 02:08 UTC] iliaa@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 19:00:02 2025 UTC | 
Description: ------------ Hi, imap extension doesn't work with apache2 (2.0.50) compiled with the option --with-mpm=worker. The same script works from the php cli or if apache2 is compiled with the default mpm-prefork. imap_open() doesn't try to open the connection and exit with the error reported immediatly. the same error appears if I try to connect to an imap server. Reproduce code: --------------- <? error_reporting(E_ALL); $mbox=imap_open("{mail.somedomain.com:110/pop3}INBOX", "username", "password"); if ($mbox) { print "OK\n"; imap_close($mbox); } else { print "ERROR\n"; } ?> Expected result: ---------------- The connection is right and I can see on the mail server the connection. Actual result: -------------- Warning: imap_open(): Couldn't open stream {mail.somedomain.com:110/pop3}INBOX in /disk1/servizi-abbonati/test.php on line 4 ERROR Notice: (null)(): Can't connect to mail.somedomain.com,110: Error 0 (errflg=2) in Unknown on line 0