php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29465 Imap not working with apache mpm-worker
Submitted: 2004-07-31 10:30 UTC Modified: 2004-08-04 02:08 UTC
From: agabellini at intelcom dot sm Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 4.3.8 OS: Solaris 8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: agabellini at intelcom dot sm
New email:
PHP Version: OS:

 

 [2004-07-31 10:30 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-04 02:08 UTC] iliaa@php.net
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. 
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 02 11:01:28 2025 UTC