Просмотр исходного кода

Fixes default type == string

More details here: https://github.com/zendframework/zf1/issues/229
Tomas Paladin Volf 12 лет назад
Родитель
Сommit
a53b4c6c99
1 измененных файлов с 1 добавлено и 0 удалено
  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());
         }
     }