File tree 3 files changed +20
-0
lines changed
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ PHP NEWS
25
25
- Fixed "make test" to work for phpized extensions. (Hartmut, Jani)
26
26
- Fixed failing queries (FALSE returned) with mysqli_query() on 64 bit systems.
27
27
(Andrey)
28
+ - Fixed bug #34449 (ext/soap: XSD_ANYXML functionality not exposed). (Dmitry)
28
29
- Fixed bug #34420 (Possible crash inside curl_multi_remove_handle()). (Ilia)
29
30
- Fixed bug #34331 (php crashes when variables_order is empty). (Ilia)
30
31
- Fixed bug #34311 (unserialize() crashes with chars above 191 dec). (Nuno)
Original file line number Diff line number Diff line change @@ -614,6 +614,7 @@ PHP_MINIT_FUNCTION(soap)
614
614
REGISTER_LONG_CONSTANT ("XSD_POSITIVEINTEGER" , XSD_POSITIVEINTEGER , CONST_CS | CONST_PERSISTENT );
615
615
REGISTER_LONG_CONSTANT ("XSD_NMTOKENS" , XSD_NMTOKENS , CONST_CS | CONST_PERSISTENT );
616
616
REGISTER_LONG_CONSTANT ("XSD_ANYTYPE" , XSD_ANYTYPE , CONST_CS | CONST_PERSISTENT );
617
+ REGISTER_LONG_CONSTANT ("XSD_ANYXML" , XSD_ANYXML , CONST_CS | CONST_PERSISTENT );
617
618
618
619
REGISTER_LONG_CONSTANT ("SOAP_ENC_OBJECT" , SOAP_ENC_OBJECT , CONST_CS | CONST_PERSISTENT );
619
620
REGISTER_LONG_CONSTANT ("SOAP_ENC_ARRAY" , SOAP_ENC_ARRAY , CONST_CS | CONST_PERSISTENT );
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #34449 (ext/soap: XSD_ANYXML functionality not exposed)
3
+ --FILE--
4
+ <?php
5
+ class TestSoapClient extends SoapClient {
6
+ function __doRequest ($ request , $ location , $ action , $ version ) {
7
+ echo "$ request \n" ;
8
+ exit ;
9
+ }
10
+ }
11
+
12
+ $ my_xml = "<array><item/><item/><item/></array> " ;
13
+ $ client = new TestSoapClient (null , array ('location ' => 'test:// ' , 'uri ' => 'test:// ' ));
14
+ $ client ->AnyFunction (new SoapVar ($ my_xml , XSD_ANYXML ));
15
+ ?>
16
+ --EXPECT--
17
+ <? xml version="1.0 " encoding="UTF -8 "?>
18
+ <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:AnyFunction><array><item/><item/><item/></array></ns1:AnyFunction></SOAP-ENV:Body></SOAP-ENV:Envelope>
You can’t perform that action at this time.
0 commit comments