php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10493 Secure IMAP server connection failure
Submitted: 2001-04-25 13:11 UTC Modified: 2001-04-25 13:30 UTC
From: michel at tlogics dot nl Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0.4pl1 OS: Linux
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: michel at tlogics dot nl
New email:
PHP Version: OS:

 

 [2001-04-25 13:11 UTC] michel at tlogics dot nl
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-25 13:30 UTC] chagenbu@php.net
Support for imap-ssl wasn't correctly added until revision 1.62 of php_imap.c, which was first in php4.0.5 RC1.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 08:01:27 2025 UTC