ID: 10493
Updated by: chagenbu
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: IMAP related
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Support for imap-ssl wasn't correctly added until revision 1.62 of php_imap.c, which 
was first in php4.0.5 RC1.

Previous Comments:
---------------------------------------------------------------------------

[2001-04-25 13:11:38] [EMAIL PROTECTED]
When running script below, I keep getting the following error:
-------
Warning: Couldn't open stream {hostname.domain.tld/ssl/novalidate-cert} in 
/full-path-to-website/test.php on line 2

Mailboxes


Warning: Unable to find stream pointer in /full-path-to-website/test.php on line 5
Call failed

Headers in INBOX


Warning: Unable to find stream pointer in /full-path-to-website/test.php on line 16
Call failed

Warning: Unable to find stream pointer in /full-path-to-website/test.php on line 26
---------
Non-SSL connections work normally. Script:
----------
<?php
$mbox = imap_open ("{hostname.domain.tld/ssl/novalidate-cert}", "user", "passwd");
 
echo "<p><h1>Mailboxes</h1>n";
$folders = imap_listmailbox ($mbox, "{hostname.domain.tld/ssl/novalidate-cert}", "*");
 
if ($folders == false) {
    echo "Call failed<br>n";
} else {
    while (list ($key, $val) = each ($folders)) {
        echo $val."<br>n";
    }
}
 
echo "<p><h1>Headers in INBOX</h1>n";
$headers = imap_headers ($mbox);
 
if ($headers == false) {
    echo "Call failed<br>n";
} else {
    while (list ($key,$val) = each ($headers)) {
        echo $val."<br>n";
    }
}
 
imap_close($mbox);
?>
--------
This script is a modified variant of the one found with the imap_open() manual page on 
the www.php.net site.

PHP was compiled as follows:
./configure --prefix=/usr --with-apxs=/var/lib/apache/sbin/apxs --with-mod_charset 
--enable-force-cgi-redirect --enable-discard-path --disable-debug --with-openssl=/usr 
--with-bz2 --with-zlib --with-zlib-dir=/usr/include --enable-ftp 
--with-imap-ssl=<path-to-cclient> --with-imap=<path-to-cclient> 
--with-mysql=<path-to-mysql> --with-mm --with-snmp --enable-ucd-snmp-hack --enable-yp 
--with-tsrm-pthreads --enable-EAPI=yes

---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10493&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to