downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SoapFault::SoapFault> <SoapFault
[edit] Last updated: Fri, 17 May 2013

view this page in

SoapFault::__construct

(PHP 5 >= 5.0.1)

SoapFault::__constructSoapFault コンストラクタ

説明

SoapFault::__construct ( string $faultcode , string $faultstring [, string $faultactor [, string $detail [, string $faultname [, string $headerfault ]]]] )

この関数は次の関数のエイリアスです。 SoapFault::SoapFault()



add a note add a note User Contributed Notes SoapFault::__construct - [1 notes]
up
0
csnaitsirch at web dot de
3 years ago
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
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites