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

From: Date: Tue, 20 Oct 2020 15:19:08 +0000
Subject: Bug #80263 [NEW]: PHP 7.2.27's SoapClient seems to be dropping returned elements with numerals
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229804@lists.php.net to get a copy of this message
From:             gnarlypowers+2020-10-20 at gmail dot com
Operating system: CentOS
PHP version:      7.2Git-2020-10-20 (Git)
Package:          SOAP related
Bug Type:         Bug
Bug description:PHP 7.2.27's SoapClient seems to be dropping returned elements with numerals

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 bug report at https://bugs.php.net/bug.php?id=80263&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=80263&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=80263&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=80263&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=80263&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=80263&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=80263&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=80263&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=80263&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=80263&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=80263&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80263&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=80263&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=80263&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=80263&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=80263&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=80263&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=80263&r=mysqlcfg


Thread (4 messages)

« previous php.bugs (#229804) next »