ID: 39283 Comment by: johnw at sussex dot ac dot uk Reported By: cboden at gmail dot com Status: Assigned Bug Type: SOAP related Operating System: Linux PHP Version: 5.2.0RC5 Assigned To: wez New Comment:
I get this bug too,using fsockopen('ssl://...') followed by fgets() I'm using PHP 5.2.1 on Solaris 9 using OpenSSL/0.9.7b. If I call @fgets(...) my application seems to work but it would be better if the bug was fixed properly! The ssl server I'm connecting to is an IIS one. Previous Comments: ------------------------------------------------------------------------ [2007-01-11 10:03:40] maboiteaspam at gmail dot com Got the same problem with Apache and mod_ssl on Solaris 9.0. SoapClient works well in http but fail when try to get the WSDL file in https stream. ------------------------------------------------------------------------ [2006-12-25 14:48:52] [EMAIL PROTECTED] Wez, could you please look into this bug. It is related to openssl streams and I cannot understand what the following code. case SSL_ERROR_SYSCALL: if (ERR_peek_error() == 0) { if (nr_bytes == 0) { if (!is_http_stream_talking_to_iis(stream TSRMLS_CC)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "SSL: fatal protocol error"); ------------------------------------------------------------------------ [2006-11-03 18:00:34] cboden at gmail dot com Now installed PHP-5.2.0 - No longer receive SoapFault (although, may have been an error in my WSDL file originally) - Sill receive "SSL: fatal protocol error" warning - Able to suppress SoapClient::__construct to ignore (@) - Besides the warning, working as expected, __getLast functions generate expected results ------------------------------------------------------------------------ [2006-10-27 16:50:10] cboden at gmail dot com Description: ------------ Soap fails to connect to the WSDL. The server is an Apache-SSL server running on Linux (Note: Not Apache using mod_ssl). I am using PHP (5.2.0RC7). php5.2-200610260230.tar.bz2 is the build file. Reproduce code: --------------- <pre> <?php try { $client = new SoapClient('https://localhost:443/wsdl.php', Array( 'allow_self_signed' => 1, 'verify_peer' => 0, 'trace' => 1, 'exceptions' => 1, )); } catch (Exception $e) { die(print_r($e)); } ?> Actual result: -------------- Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]: SSL: fatal protocol error in /client.php on line 9 SoapFault Object ( [message:protected] => SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://localhost:443/wsdl.php' [string:private] => [code:protected] => 0 [file:protected] => /client.php [line:protected] => 9 [trace:private] => Array ( [0] => Array ( [file] => /client.php [line] => 9 [function] => SoapClient [class] => SoapClient [type] => -> [args] => Array ( [0] => https://localhost:443/wsdl.php [1] => Array ( [allow_self_signed] => 1 [verify_peer] => 0 [trace] => 1 [exceptions] => 1 ) ) ) ) [faultstring] => SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://localhost:443/wsdl.php' [faultcode] => WSDL ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39283&edit=1