From: [EMAIL PROTECTED]
Operating system: Linux
PHP version: 4.0.4pl1
PHP Bug Type: IMAP related
Bug description: Secure IMAP server connection failure
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
--
Edit Bug report at: http://bugs.php.net/?id=10493&edit=1
--
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]