ZF-4928: Error in Zend_Soap_Server::fault

Issue Type: Bug Created: 2008-11-12T08:21:04.000+0000 Last Updated: 2008-11-13T14:10:01.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Benjamin Eberlei (beberlei) Assignee: Benjamin Eberlei (beberlei) Tags: - Zend_Soap_Server

Related issues: Attachments:


Directly from fw-general:


In Zend_Soap_Server, PHP errors are caught and thrown as SoapFaults. This happens in the public function 'fault' at line 764 of Zend/Soap/Server.php.

The problem is that the SoapFault is thrown with the PHP errorcode as SoapFault code. This doesn't work because a SoapFault Code can only be 'SERVER' or 'SENDER' or 'RECEIVER'.

When php errors are thrown as soapfault, the error code of the soapfault should be 'SERVER' because the server is the one giving problems.

Now when something goes unexpectedly wrong, I get the following error

PHP Fatal error: SoapFault::SoapFault() [<soapfault.soapfault>]: Invalid parameters. Invalid fault code. in library/Zend/Soap/Server.php on line 77 That means line 779 should change from:

return new SoapFault($code, $message);

To something like this: return new SoapFault('SERVER', $code . " - " . $message);

regards, Dieter"


Posted by Benjamin Eberlei (beberlei) on 2008-11-13T09:37:16.000+0000

solved in trunk and merged back to 1.7 branch.

Posted by Wil Sinclair (wil) on 2008-11-13T14:10:01.000+0000

Changing issues in preparation for the 1.7.0 release.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.