From:             
Operating system: Linux
PHP version:      Irrelevant
Package:          IMAP related
Bug Type:         Bug
Bug description:IMAP-functions don't work! 

Description:
------------
Note:
1. imap.so 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 
script;
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:
---------------
<?php
if(extension_loaded("imap"))
  {
  echo "<pre>imap loaded</pre>";
  }else{
       echo "<pre>imap not loaded</pre>";
       }

$mbox =
imap_open("{XXXXX.com:143/novalidate-cert}","user_name","user_pass");

if($mbox !== FALSE)
  {
  $list = imap_list($mbox,"{XXXXX.com:143/novalidate-cert}","*");
  }else{
       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

-- 
Edit bug report at https://bugs.php.net/bug.php?id=60579&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=60579&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=60579&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=60579&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=60579&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60579&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=60579&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=60579&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=60579&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=60579&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=60579&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=60579&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=60579&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=60579&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=60579&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=60579&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60579&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=60579&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=60579&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=60579&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=60579&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=60579&r=mysqlcfg

Reply via email to