Bug #80263 [Csd->Nab]: PHP 7.2.27's SoapClient seems to be dropping returned elements with numerals

From: Date: Tue, 20 Oct 2020 16:09:38 +0000
Subject: Bug #80263 [Csd->Nab]: PHP 7.2.27's SoapClient seems to be dropping returned elements with numerals
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229810@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80263&edit=1 ID: 80263 Updated by: cmb@php.net Reported by: gnarlypowers+2020-10-20 at gmail dot com Summary: PHP 7.2.27's SoapClient seems to be dropping returned elements with numerals -Status: Closed +Status: Not a bug Type: Bug Package: SOAP related Operating System: CentOS PHP Version: 7.2.27 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2020-10-20 15:32:18] gnarlypowers+2020-10-20 at gmail dot com Closing ------------------------------------------------------------------------ [2020-10-20 15:30:59] gnarlypowers+2020-10-20 at gmail dot com Please disregard. New data suggests this has nothing to do with the digit, and may be related to other parts of the system I'm working with ------------------------------------------------------------------------ [2020-10-20 15:19:08] gnarlypowers+2020-10-20 at gmail dot com Description: ------------ Working with web-services provided by another system, I am able to use SoapClient to receive values for all but one element. Using __getLastResponse and then DOMDocument::loadXml I'm able to see the element being dropped by whatever parsing SoapClient is using. The element name in my case was "W9StatusICD". Test script: --------------- // Preconditions: $url defined as a WSDL with a method $method, which returns at least one element with a numeral in the name after the first character when called with $params (a numeral as the first character would be invalid XML) try { $client = new SoapClient( $url, array( 'trace' => 1, 'exception' => 1 ) ); return $client->$method($params); catch (Exception $e) { echo '<p class="error">'$e->getMessage(),'</p>'; } } echo '<p><pre>',htmlspecialchars(print_r($client->__getLastResponse(),true)),'</pre></p>'; Expected result: ---------------- An element with a numeral in the second or later position in the name (example: W9StatusICD) should be indicated in the resulting text. Actual result: -------------- All elements except those with numerals are returned. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80263&edit=1

« previous php.bugs (#229810) next »