PHP 8.3.21 Released!

SoapFault::__construct

(PHP 5, PHP 7, PHP 8)

SoapFault::__constructConstructor de SoapFault

Descripción

SoapFault::__construct(
    string $faultcode,
    string $faultstring,
    string $faultactor = ?,
    string $detail = ?,
    string $faultname = ?,
    string $headerfault = ?
)

Esta función es un alias de: SoapFault::SoapFault()

add a note

User Contributed Notes 1 note

up
3
csnaitsirch at web dot de
15 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
?>
To Top

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant