|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60579 IMAP-functions don't work!
Submitted: 2011-12-20 22:27 UTC Modified: 2011-12-21 00:29 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: profymath at yahoo dot com Assigned:
Status: Not a bug Package: IMAP related
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
 [2011-12-20 22:27 UTC] profymath at yahoo dot com
1. is loaded (as seen from the script and, through 
get_loaded_extensions() function);
2. imap.ini is parsed (as seen from phpinfo() function);
3. php is compiled with imap (as seen from phpinfo() function, IMAP c-Client 
Version 2007e);
4. error log file (php.ini) don't record any failures after launching the 
5. connection to IMAP Server (dovecot) through telnet doesn't have any problem. 
Moreover, when I start the script I see that the connection to IMAP Server goes 
well but it is disconnected immediately. That is compared to telnet connection, 
the connection through imap_open function doesn't stay opened!
6. webserver (apache) configuration is checked for misconfiguration (as imap-
functions start from webserver environment).Nothing found.  

Test script:
  echo "<pre>imap loaded</pre>";
       echo "<pre>imap not loaded</pre>";

$mbox = imap_open("{}","user_name","user_pass");

if($mbox !== FALSE)
  $list = imap_list($mbox,"{}","*");
       echo"<br>","The stream is closed!";

Expected result:
An array containing the names of the mailboxes ($list).

Actual result:
imap loaded
Notice: Undefined variable: mbox in /usr/lib/cgi-bin/PPP.php on line 24 Fatal 
error: Call to undefined function  imap_list() in /usr/lib/cgi-bin/PPP.php on 
line 27


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-12-21 00:29 UTC]
-Status: Open +Status: Bogus
 [2011-12-21 00:29 UTC]
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Sep 25 05:05:54 2022 UTC