|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36496 SSL support in imap_open@php_imap.dll not working
Submitted: 2006-02-23 10:17 UTC Modified: 2007-02-19 16:07 UTC
Avg. Score:4.6 ± 0.7
Reproduced:30 of 30 (100.0%)
Same Version:17 (56.7%)
Same OS:23 (76.7%)
From: krejci at ped dot muni dot cz Assigned: edink (profile)
Status: Closed Package: IMAP related
PHP Version: 5.1.4 OS: WinXP, Win2003
Private report: No CVE-ID: None
 [2006-02-23 10:17 UTC] krejci at ped dot muni dot cz
tested on WinXPSP2+IIS5.1 and Win2003StdSP1+IIS6

loaded modules:
;php_imap.dll md5: 29f661116b793acad732b3feb404a406

phpinfo shows:
IMAP c-Client Version:  2004  
SSL Support:  enabled  

Reproduce code:
        $connection = imap_open("{}", "username", "password");
        if ($connection) {
        else {

Expected result:
I expect that a ssl-connection to would be established
that at least a Warning about missing SSL support would show up.

Actual result:
Warning: imap_open() [function.imap-open]: Couldn't open stream {} in c:\Inetpub\wwwroot\test\pop-real-ssl.bugrep.php on line 2
Notice: Unknown: Can't open mailbox {}: invalid remote specification (errflg=2) in Unknown on line 0

No packet is actually sent.
If I omit the "/ssl/novalidate-cert" part, everything works fine.
It seems that the SSL support is not compiled in the windows binaries, despite of what the phpinfo says.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-23 17:46 UTC]
Please try using this CVS snapshot:
For Windows:

 [2006-02-23 21:59 UTC] krejci at ped dot muni dot cz
PHP Version 5.1.3-dev
Build Date:	Feb 20 2006 00:19:29

no change, no luck, still not working.
 [2006-02-23 22:05 UTC]
Ilia, please check it out.
 [2006-03-17 20:10 UTC] stanciu dot ionut at gmail dot com
I have the same problem ... i try everything but nothing :(
 [2006-03-17 22:47 UTC]
I think openssl must be static linked to PHP for this to work.

The functions in on extension would not know how or where to call functions in another extension when they both are linked dynamic.
 [2006-05-28 19:14 UTC] krejci at ped dot muni dot cz
Hi, please don't forget me ;-)

No change upto latest 5.1.5-dev
(Build Date: May 7 2006 00:16:05)
 [2006-05-31 18:36 UTC]
Just a sidenote: on can link extensions on Windows, if this is really the problem.
 [2006-07-14 15:11 UTC] olivier dot monaco at free dot fr
Patch from seems to never be tested. Maybe the answer...
 [2006-07-30 07:33 UTC] piotr dot rezmer at ens dot net dot pl
The problem exists also in PHP 5.2 (snapshot and PHP 6.0 (
 [2006-07-30 08:16 UTC] piotr dot rezmer at ens dot net dot pl
the problem relates to mail_open() function which is called within imap_open().
 [2007-02-19 16:07 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

Thanks to olivier dot monaco at free dot fr for giving a good hint :)
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Jul 05 07:05:46 2022 UTC