php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39283 SSL: fatal protocol error
Submitted: 2006-10-27 16:50 UTC Modified: 2008-02-15 01:00 UTC
Votes:36
Avg. Score:4.7 ± 0.7
Reproduced:36 of 36 (100.0%)
Same Version:14 (38.9%)
Same OS:22 (61.1%)
From: cboden at gmail dot com Assigned: wez (profile)
Status: No Feedback Package: SOAP related
PHP Version: 5.2.0RC5 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cboden at gmail dot com
New email:
PHP Version: OS:

 

 [2006-10-27 16:50 UTC] 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

)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-03 18:00 UTC] 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-12-25 14:48 UTC] dmitry@php.net
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");

 [2007-01-11 10:03 UTC] 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.
 [2007-08-02 00:07 UTC] johnw at sussex dot ac dot uk
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.
 [2007-12-03 22:25 UTC] glamm at a-s-i dot com
Reproduced with PHP v5.2.5.  The specific problem lies in the SSL handling.  This URL:

https://webservices.listrak.com/v31/IntegrationService.asmx?WSDL

fails, but when using an internal Apache reverse-proxy to "convert" from SSL to cleartext the load works just fine.
 [2008-02-15 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 06:01:28 2024 UTC