|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-11-21 18:28 UTC] seth at sethmatics dot com
[2013-06-18 14:47 UTC] koblavino at gmail dot com
[2017-07-25 03:33 UTC] peter_liang at vtech dot com
[2018-11-04 14:01 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2018-11-04 14:01 UTC] cmb@php.net
[2018-11-18 22:43 UTC] cmb@php.net
-Status: Feedback
+Status: No Feedback
[2018-11-18 22:43 UTC] cmb@php.net
[2018-12-14 10:06 UTC] pedro dot fernandez at editeformacion dot com
[2018-12-14 11:21 UTC] cmb@php.net
-Status: No Feedback
+Status: Open
[2018-12-14 15:43 UTC] cmb@php.net
-Status: Assigned
+Status: Open
[2018-12-14 15:43 UTC] cmb@php.net
[2018-12-14 15:43 UTC] cmb@php.net
-Status: Assigned
+Status: Open
-Assigned To: cmb
+Assigned To:
[2024-06-01 16:58 UTC] nielsdos@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 21:00:01 2025 UTC |
Description: ------------ This is a duplicate of #41745 but that's been stuck on "No Feedback" since 2007, so I thought I'd re-post. When null is provided for a SOAP parameter or the field of an object passed as a SOAP parameter, PHP incorrectly encodes the parameter as being empty (e.g. object with all null fields, or empty string) which is different from an actual null. This breaks access to real-world web services. Test script: --------------- --------------- $soap = new SoapClient('/path/to/wsdl', array('trace' => true)); $soap->operation(null); echo $soap->__getLastRequest(); Expected result: ---------------- <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="NAMESPACE" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <ns1:operation> <paramName xsi:nil="true"/> </ns1:operation> </SOAP-ENV:Body> </SOAP-ENV:Envelope> Actual result: -------------- <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="NAMESPACE"> <SOAP-ENV:Body> <ns1:operation> <paramName/> </ns1:operation> </SOAP-ENV:Body> </SOAP-ENV:Envelope>