php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #61105 Support Soap 1.2 SoapFault Reason Text lang attribute
Submitted: 2012-02-16 12:32 UTC Modified: 2025-06-20 22:18 UTC
Votes:6
Avg. Score:4.7 ± 0.7
Reproduced:6 of 6 (100.0%)
Same Version:2 (33.3%)
Same OS:3 (50.0%)
From: ben dot davies at boxuk dot com Assigned: nielsdos (profile)
Status: Closed Package: SOAP related
PHP Version: Irrelevant OS: All
Private report: No CVE-ID: None
 [2012-02-16 12:32 UTC] ben dot davies at boxuk dot com
Description:
------------
Using soap version 1.2, SoapFaults with Reasons are not currently schema 
compliant.
See
http://www.w3.org/TR/soap12-part1/#reasontextelement

Reason > Text should have a mandatory attribute lang.
see http://www.w3.org/TR/soap12-part1/#reasontextelement

This has been marked in the source since 2004 as a TODO.
see http://svn.php.net/viewvc/php/php-src/trunk/ext/soap/php_packet_soap.c?
view=markup line 221.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-14 17:03 UTC] holger dot niehoff at hcom dot de
This should be really easy to fix. Currently communication with .NET not possible because of this (as SoapFaults cannot be avoided, e.g. they are auto generated by php if input validation fails)
 [2017-11-02 20:58 UTC] umit_akkaya at live dot nl
It is still stays as TODO https://github.com/php/php-src/blob/master/ext/soap/php_packet_soap.c#L223

Clients who are using SOAP 1.2 are not able to parse response if there is SoapFault.
 [2025-06-20 22:18 UTC] nielsdos@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nielsdos
 [2025-06-20 22:18 UTC] nielsdos@php.net
The fix for this bug has been committed.
If you are still experiencing this bug, try to check out latest source from https://github.com/php/php-src and re-test.
Thank you for the report, and for helping us make PHP better.

Fixed in 8.5-dev
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 15:01:38 2025 UTC