PHP Doku:: SoapFault-Konstruktor - soapfault.construct.html

Verlauf / Chronik / History: (13) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzWeb ServicesSOAPThe SoapFault classSoapFault::__construct

Ein Service von Reinhard Neidl - Webprogrammierung.

The SoapFault class

<<The SoapFault class

SoapFault::SoapFault>>

SoapFault::__construct

(PHP 5 >= 5.0.1)

SoapFault::__constructSoapFault-Konstruktor

Beschreibung

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

Diese Funktion ist ein Alias für: SoapFault::SoapFault()


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
csnaitsirch at web dot de
1.04.2010 15:04
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
?>



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)