Sfoglia il codice sorgente

Fixes default type == string

More details here: https://github.com/zendframework/zf1/issues/229
Tomas Paladin Volf 12 anni fa
parent
commit
a53b4c6c99
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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());
         }
     }