diff -r 5a6b6e770365 -r 68c69c656a2c web/lib/Zend/XmlRpc/Value.php
--- a/web/lib/Zend/XmlRpc/Value.php Thu May 07 15:10:09 2015 +0200
+++ b/web/lib/Zend/XmlRpc/Value.php Thu May 07 15:16:02 2015 +0200
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Value.php 24593 2012-01-05 20:35:02Z matthew $
+ * @version $Id$
*/
/**
@@ -31,7 +31,7 @@
* from PHP variables, XML string or by specifing the exact XML-RPC natvie type
*
* @package Zend_XmlRpc
- * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_XmlRpc_Value
@@ -500,9 +500,17 @@
}
}
+ //if there is a child element, try to parse type for it
+ if (!$type && $value instanceof SimpleXMLElement) {
+ self::_extractTypeAndValue($value->children(), $type, $value);
+ }
+
// If no type was specified, the default is string
if (!$type) {
$type = self::XMLRPC_TYPE_STRING;
+ if (preg_match('#^.*$#', $xml->asXML())) {
+ $value = str_replace(array('', ''), '', $xml->asXML());
+ }
}
}