/usr/share/php/tests/SOAP/tests/deserialize/multiref_1.phpt is in php-soap 0.13.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | --TEST--
Deserialize multi-reference value with backward reference
--FILE--
<?php
require_once dirname(__FILE__) . '/../test.utility.php';
$msg = '<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<m:test xmlns:m="http://soapinterop.org/">
<greeting id="String-0">Hello</greeting>
<salutation href="#String-0"/>
</m:test>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
';
$val = parseMessage($msg);
var_dump($val);
?>
--EXPECTF--
object(stdClass)%s2) {
["greeting"]=>
string(5) "Hello"
["salutation"]=>
string(5) "Hello"
}
|