Bug #80263 [Opn]: PHP 7.2.27's SoapClient seems to be dropping returned elements with numerals

From: Date: Tue, 20 Oct 2020 15:30:59 +0000
Subject: Bug #80263 [Opn]: 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-229805@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 User updated by: gnarlypowers+2020-10-20 at gmail dot com 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: Open Type: Bug Package: SOAP related Operating System: CentOS PHP Version: 7.2Git-2020-10-20 (Git) Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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 (#229805) next »