dmitry Mon Sep 12 04:23:50 2005 EDT Added files: /php-src/ext/soap/tests/bugs bug34449.phpt
Modified files: /php-src NEWS /php-src/ext/soap soap.c Log: Fixed bug #34449 (ext/soap: XSD_ANYXML functionality not exposed) http://cvs.php.net/diff.php/php-src/NEWS?r1=1.2058&r2=1.2059&ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.2058 php-src/NEWS:1.2059 --- php-src/NEWS:1.2058 Thu Sep 8 06:32:16 2005 +++ php-src/NEWS Mon Sep 12 04:23:43 2005 @@ -17,6 +17,7 @@ defined using reflection API. (Johannes) - Fixed a bug where stream_get_meta_data() did not return the "uri" element for files opened with tmpname(). (Derick) +- Fixed bug #34449 (ext/soap: XSD_ANYXML functionality not exposed). (Dmitry) - Fixed bug #34310 (foreach($arr as $c->d => $x) crashes). (Dmitry) - Fixed bug #34302 (date('W') do not return leading zeros for week 1 to 9). (Derick) http://cvs.php.net/diff.php/php-src/ext/soap/soap.c?r1=1.159&r2=1.160&ty=u Index: php-src/ext/soap/soap.c diff -u php-src/ext/soap/soap.c:1.159 php-src/ext/soap/soap.c:1.160 --- php-src/ext/soap/soap.c:1.159 Wed Aug 17 13:02:46 2005 +++ php-src/ext/soap/soap.c Mon Sep 12 04:23:49 2005 @@ -17,7 +17,7 @@ | Dmitry Stogov <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: soap.c,v 1.159 2005/08/17 17:02:46 sniper Exp $ */ +/* $Id: soap.c,v 1.160 2005/09/12 08:23:49 dmitry Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -614,6 +614,7 @@ 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); http://cvs.php.net/co.php/php-src/ext/soap/tests/bugs/bug34449.phpt?r=1.1&p=1 Index: php-src/ext/soap/tests/bugs/bug34449.phpt +++ php-src/ext/soap/tests/bugs/bug34449.phpt --TEST-- Bug #34449 (ext/soap: XSD_ANYXML functionality not exposed) --FILE-- <?php class TestSoapClient extends SoapClient { function __doRequest($request, $location, $action, $version) { echo "$request\n"; exit; } } $my_xml = "<array><item/><item/><item/></array>"; $client = new TestSoapClient(null, array('location' => 'test://', 'uri' => 'test://')); $client->AnyFunction(new SoapVar($my_xml, XSD_ANYXML)); ?> --EXPECT-- <?xml version="1.0" encoding="UTF-8"?> <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> -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php