From: krejci at ped dot muni dot cz
Operating system: WinXP, Win2003
PHP version: 5.1.2
PHP Bug Type: IMAP related
Bug description: SSL support in [EMAIL PROTECTED] not working
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 bug report at http://bugs.php.net/?id=36496&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=36496&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=36496&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=36496&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36496&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=36496&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36496&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36496&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36496&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36496&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36496&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=36496&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=36496&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36496&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36496&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36496&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36496&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36496&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36496&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36496&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36496&r=mysqlcfg