From: Dmitry Stogov Date: Mon, 12 Sep 2005 08:24:01 +0000 (+0000) Subject: Fixed bug #34449 (ext/soap: XSD_ANYXML functionality not exposed) X-Git-Tag: php-5.1.0RC2~271 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90236679e93b4aa8bdbf44f4d937a49176424fd0;p=php Fixed bug #34449 (ext/soap: XSD_ANYXML functionality not exposed) --- diff --git a/NEWS b/NEWS index ee93fc89c5..34d5db8b98 100644 --- a/NEWS +++ b/NEWS @@ -25,6 +25,7 @@ PHP NEWS - Fixed "make test" to work for phpized extensions. (Hartmut, Jani) - Fixed failing queries (FALSE returned) with mysqli_query() on 64 bit systems. (Andrey) +- Fixed bug #34449 (ext/soap: XSD_ANYXML functionality not exposed). (Dmitry) - Fixed bug #34420 (Possible crash inside curl_multi_remove_handle()). (Ilia) - Fixed bug #34331 (php crashes when variables_order is empty). (Ilia) - Fixed bug #34311 (unserialize() crashes with chars above 191 dec). (Nuno) diff --git a/ext/soap/soap.c b/ext/soap/soap.c index 1eafeff9e8..aaec8d9f4d 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -614,6 +614,7 @@ PHP_MINIT_FUNCTION(soap) REGISTER_LONG_CONSTANT("XSD_POSITIVEINTEGER", XSD_POSITIVEINTEGER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("XSD_NMTOKENS", XSD_NMTOKENS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("XSD_ANYTYPE", XSD_ANYTYPE, CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("XSD_ANYXML", XSD_ANYXML, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SOAP_ENC_OBJECT", SOAP_ENC_OBJECT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SOAP_ENC_ARRAY", SOAP_ENC_ARRAY, CONST_CS | CONST_PERSISTENT); diff --git a/ext/soap/tests/bugs/bug34449.phpt b/ext/soap/tests/bugs/bug34449.phpt new file mode 100755 index 0000000000..95cd4867d8 --- /dev/null +++ b/ext/soap/tests/bugs/bug34449.phpt @@ -0,0 +1,18 @@ +--TEST-- +Bug #34449 (ext/soap: XSD_ANYXML functionality not exposed) +--FILE-- +"; +$client = new TestSoapClient(null, array('location' => 'test://', 'uri' => 'test://')); +$client->AnyFunction(new SoapVar($my_xml, XSD_ANYXML)); +?> +--EXPECT-- + +