Skip to content

Commit e5ff8d3

Browse files
committed
Put integer key first in GH-25267 test
1 parent 4a9d2c6 commit e5ff8d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎ext/soap/tests/gh25267.phpt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class C extends SoapClient {
1313
}
1414
}
1515
$c = new C(null, ["location" => "test://", "uri" => "test://"]);
16-
$c->foo(new SoapVar(["a" => new SoapVar("x", XSD_STRING), new SoapVar("y", XSD_STRING)], XSD_ANYXML));
16+
$c->foo(new SoapVar([new SoapVar("y", XSD_STRING), "a" => new SoapVar("x", XSD_STRING)], XSD_ANYXML));
1717
?>
1818
--EXPECT--
1919
<?xml version="1.0" encoding="UTF-8"?>
20-
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="test://" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:foo><a xsi:type="xsd:string">x</a><param0 xsi:type="xsd:string">y</param0></ns1:foo></SOAP-ENV:Body></SOAP-ENV:Envelope>
20+
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="test://" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:foo><BOGUS xsi:type="xsd:string">y</BOGUS><a xsi:type="xsd:string">x</a></ns1:foo></SOAP-ENV:Body></SOAP-ENV:Envelope>

0 commit comments

Comments
 (0)