Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.8.1

Bug #16254 TLS on top of SSL
Submitted: 2009-05-24 08:13 UTC
From: axel Assigned: jon
Status: Closed Package: Net_SMTP (version 1.3.2)
PHP Version: 5.2.0 OS: Debian 32bit
Roadmaps: (Not assigned)    
Subscription  


 [2009-05-24 08:13 UTC] axel (Axel Naumann)
Description: ------------ I get a server complaint that Net_SMTP tries to connect with both SSL and TLS. I have auth meethod='' and host=ssl://hostname. The host in the example code shows the same behavior. For testing purposes I disabled TLS if the host name starts with "ssl://" in line 463; that fixed it. Test script: --------------- require 'Net/SMTP.php'; $smtp = new Net_SMTP('ssl://mail.gmx.net', 465); $smtp->connect(10); if (PEAR::isError($e = $smtp->auth('user@gmx.net', 'pass', ''))) { // server complains die($e->getMessage() . "\n"); } $smtp->disconnect(); Expected result: ---------------- no output; as the socket uses SSL the connection should avoid TLS - or allow me to disable it. Actual result: -------------- "Invalid response code received from server"

Comments

 [2009-05-26 05:52 UTC] jon (Jon Parise)
The following patch has been added/updated: Patch Name: tls-ssl.diff Revision: 1243299162 URL: http://pear.php.net/bugs/patch-display.php?bug=16254&patch=tls-ssl.diff&revision=1243299162&display=1
 [2009-05-26 05:54 UTC] jon (Jon Parise)
-Status: Open +Status: Feedback -Assigned To: +Assigned To: jon
Please try the attached patch to see if that fixes things up. It essentially implements your suggestion.
 [2009-05-26 13:09 UTC] axel (Axel Naumann)
Yes, that fixes it. Thanks! Axel.
 [2009-05-28 07:36 UTC] jon (Jon Parise)
-Status: Feedback +Status: Closed
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.