The same code fails on my Ubuntu box with PHP 5.2.1 (OpenSSL 0.9.8c 05
Sep 2006) with the following output:
Warning: fgets(): SSL operation failed with code 1. OpenSSL Error messages:
error:1408F10B:SSL routines:func(143):reason(267) in
library/Zend/Mail/Protocol/Abstract.php on line 303
Call Stack:
2.0072 743988 1. Zend_Mail_Transport_Smtp->__destruct()
library/Zend/Mail/Transport/Smtp.php:0
2.0073 743988 2. Zend_Mail_Protocol_Smtp->quit()
library/Zend/Mail/Transport/Smtp.php:141
2.0077 743992 3. Zend_Mail_Protocol_Abstract->_expect()
library/Zend/Mail/Protocol/Smtp.php:365
2.0078 743992 4. Zend_Mail_Protocol_Abstract->_receive()
library/Zend/Mail/Protocol/Abstract.php:346
2.0080 743992 5. fgets()
library/Zend/Mail/Protocol/Abstract.php:303
Fatal error: Exception thrown without a stack frame in Unknown on line 0
Sorry for the line wrapping. :-/
Best regards,
Darby
Darby Felton wrote:
> I ran the following on PHP 5.1.4 (wampserver with OpenSSL 0.9.8a 11 Oct
> 2005):
>
> error_reporting(E_ALL | E_STRICT);
> $config = array(
> 'auth' => 'login',
> 'username' => '[EMAIL PROTECTED]',
> 'password' => 'secret',
> 'ssl' => 'tls',
> 'port' => 587
> );
> require_once 'Zend/Mail/Transport/Smtp.php';
> $tr = new Zend_Mail_Transport_Smtp('smtp.googlemail.com', $config);
> require_once 'Zend/Mail.php';
> Zend_Mail::setDefaultTransport($tr);
> $mail = new Zend_Mail();
> $mail->setFrom('[EMAIL PROTECTED]');
> $mail->addTo('[EMAIL PROTECTED]', 'Info');
> $mail->setSubject('test');
> $mail->setBodyText('testing... 1... 2... 3...');
> $mail->send();
>
> The output:
>
> Warning: fgets() [function.fgets]: SSL operation failed with code 1.
> OpenSSL Error messages: error:1408F10B:SSL
> routines:SSL3_GET_RECORD:wrong version number in
> library\Zend\Mail\Protocol\Abstract.php on line 303
>
> Fatal error: Exception thrown without a stack frame in Unknown on line 0
>
> I'll try on my Ubuntu box momentarily and post the results I get.
>
> Best regards,
> Darby
>
> Matthew Weier O'Phinney wrote:
>> -- mike55 <[EMAIL PROTECTED]> wrote
>> (on Wednesday, 18 July 2007, 06:14 AM -0700):
>>> Simon Mundy wrote:
>>>> You said it was the XAMP install? Anything else I'd need to know to
>>>> build a similar setup to test this?
>>> it's a XAMPP xampp-win32-1.5.4a-installer.exe
>>> the files:
>>> http://sourceforge.net/project/shownotes.php?release_id=452871&group_id=61776
>>>
>>> here's is phpinfo:
>>> http://rapidshare.com/files/43607735/phpinfo.htm.html
>> That shows an OpenSSL of 0.9.8a -- I'm on 0.9.8c, released a year later.
>> I wonder if that's the difference? Can anyone test using 0.9.8a vs. c or
>> later?
>>
>