From: cboden at gmail dot com
Operating system: Linux
PHP version: 5.2.0RC5
PHP Bug Type: SOAP related
Bug description: SSL: fatal protocol error
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 bug report at http://bugs.php.net/?id=39283&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=39283&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=39283&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=39283&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39283&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=39283&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39283&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39283&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39283&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39283&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39283&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=39283&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=39283&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39283&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39283&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39283&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39283&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39283&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39283&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39283&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39283&r=mysqlcfg