#36496 [Asn]: SSL support in imap_open@php_imap.dll not working
| From: | fmk@php.net | Date: | Fri, 17 Mar 2006 21:47:09 +0000 |
| Subject: | #36496 [Asn]: SSL support in imap_open@php_imap.dll not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-94482@lists.php.net to get a copy of this message | ||
ID: 36496
Updated by: fmk@php.net
Reported By: krejci at ped dot muni dot cz
Status: Assigned
Bug Type: IMAP related
Operating System: WinXP, Win2003
PHP Version: 5.1.2
Assigned To: iliaa
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2006-03-17 20:10:38] stanciu dot ionut at gmail dot com
I have the same problem ... i try everything but nothing :(
------------------------------------------------------------------------
[2006-02-23 22:05:38] tony2001@php.net
Ilia, please check it out.
------------------------------------------------------------------------
[2006-02-23 21:59:52] krejci at ped dot muni dot cz
Tried
PHP Version 5.1.3-dev
Build Date: Feb 20 2006 00:19:29
no change, no luck, still not working.
------------------------------------------------------------------------
[2006-02-23 17:46:59] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
------------------------------------------------------------------------
[2006-02-23 10:17:50] krejci at ped dot muni dot cz
Description:
------------
tested on WinXPSP2+IIS5.1 and Win2003StdSP1+IIS6
loaded modules:
extension=php_mbstring.dll
extension=php_gd2.dll
extension=php_imap.dll
;php_imap.dll md5: 29f661116b793acad732b3feb404a406
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_openssl.dll
phpinfo shows:
IMAP c-Client Version: 2004
SSL Support: enabled
Reproduce code:
---------------
<?php
$connection =
imap_open("{pop.gmail.com:995/pop3/ssl/novalidate-cert}", "username",
"password");
if ($connection) {
imap_close($connection);
echo("OK");
}
else {
echo("ERROR");
}
?>
Expected result:
----------------
I expect that a ssl-connection to pop.gmail.com would be established
OR
that at least a Warning about missing SSL support would show up.
Actual result:
--------------
Warning: imap_open() [function.imap-open]: Couldn't open stream
{pop.gmail.com:995/pop3/ssl/novalidate-cert} in
c:\Inetpub\wwwroot\test\pop-real-ssl.bugrep.php on line 2
ERROR
Notice: Unknown: Can't open mailbox
{pop.gmail.com:995/pop3/ssl/novalidate-cert}: 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36496&edit=1