The first Parameter of the constructor, the faultcode, of SoapFault must be a string. Otherwise it will lead to an error.
<?php
throw new SoapFault(1, "Error message!"); // wrong
throw new SoapFault("1", "Error message!"); // right
?>
SoapFault::__construct
(PHP 5 >= 5.0.1)
SoapFault::__construct — SoapFault constructor
Description
SoapFault::__construct
( string $faultcode
, string $faultstring
[, string $faultactor
[, string $detail
[, string $faultname
[, string $headerfault
]]]] )
This function is an alias of: SoapFault::SoapFault()
csnaitsirch at web dot de
01-Apr-2010 05:04
