Edit report at http://bugs.php.net/bug.php?id=51273&edit=1
ID: 51273 Updated by: il...@php.net Reported by: dennis at transip dot nl Summary: Faultstring property does not exist when the faultstring is empty -Status: Open +Status: Closed Type: Bug Package: SOAP related Operating System: FreeBSD 7.0-STABLE PHP Version: 5.2.13 -Assigned To: +Assigned To: iliaa Previous Comments: ------------------------------------------------------------------------ [2010-06-09 17:48:24] il...@php.net Automatic comment from SVN on behalf of iliaa Revision: http://svn.php.net/viewvc/?view=revision&revision=300317 Log: Fixed bug #51273 (Faultstring property does not exist when the faultstring is empty) # Patch by dennis at transip dot nl ------------------------------------------------------------------------ [2010-05-03 21:53:04] paj...@php.net Automatic comment from SVN on behalf of pajoye Revision: http://svn.php.net/viewvc/?view=revision&revision=298931 Log: - revert #51273 ------------------------------------------------------------------------ [2010-05-03 19:48:00] paj...@php.net Automatic comment from SVN on behalf of pajoye Revision: http://svn.php.net/viewvc/?view=revision&revision=298919 Log: - #51273, Content-length header is limited to 32bit integer with apache2/windows ------------------------------------------------------------------------ [2010-03-11 13:55:16] dennis at transip dot nl Description: ------------ When a SoapServer sends back a SoapFault response with an empty faultstring, PHP will not set the $faultstring property of the thrown SoapFault object. The following SOAP response will result in the $faultstring property not being set: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>test</faultcode><faultstring></faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> Test script: --------------- server.php: <?php $server = new SoapServer(null, array('uri' => "http://test-uri/")); function test($inputString) { global $server; $server->fault('test', ''); } $server->addFunction("test"); $server->handle(); ?> client.php: <?php $client = new SoapClient(null, array('location' => "http://localhost/server.php",'uri'=> "http://test-uri/")); try{ echo $client->test('hello?'); } catch(SoapFault $f) { echo isset($f->faultstring) ? "has faultstring\n" : "no faultstring\n"; } ?> Expected result: ---------------- has faultstring Actual result: -------------- no faultstring ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51273&edit=1