Explorar o código

Fixes default type == string

More details here: https://github.com/zendframework/zf1/issues/229
Tomas Paladin Volf %!s(int64=12) %!d(string=hai) anos
pai
achega
a53b4c6c99
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      library/Zend/XmlRpc/Value.php

+ 1 - 0
library/Zend/XmlRpc/Value.php

@@ -508,6 +508,7 @@ abstract class Zend_XmlRpc_Value
         // If no type was specified, the default is string
         if (!$type) {
             $type = self::XMLRPC_TYPE_STRING;
+            $value = str_replace(array('<value>', '</value>'), '', $xml->asXML());
         }
     }