#29465 [Opn->Bgs]: Imap not working with apache mpm-worker
| From: | iliaa@php.net | Date: | Wed, 04 Aug 2004 00:08:38 +0000 |
| Subject: | #29465 [Opn->Bgs]: Imap not working with apache mpm-worker | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-64053@lists.php.net to get a copy of this message | ||
ID: 29465
Updated by: iliaa@php.net
Reported By: agabellini at intelcom dot sm
-Status: Open
+Status: Bogus
Bug Type: IMAP related
Operating System: Solaris 8
PHP Version: 4.3.8
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
c-client library on which the PHP's IMAP extension is based
is not thread-safe. If you want to use it, avoided thread
based Apache 2 process models.
Previous Comments:
------------------------------------------------------------------------
[2004-07-31 10:30:24] agabellini at intelcom dot sm
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29465&edit=1