Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Updated AbstractValue to satisfy new test
Browse files Browse the repository at this point in the history
See ZF1 issue for more: zendframework/zf1#229
  • Loading branch information
Tomas Paladin Volf committed Oct 28, 2013
1 parent ed99497 commit d645eb2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/Zend/XmlRpc/AbstractValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,9 @@ protected static function _extractTypeAndValue(\SimpleXMLElement $xml, &$type, &
// If no type was specified, the default is string
if (!$type) {
$type = self::XMLRPC_TYPE_STRING;
if (preg_match('#^<value>.*</value>$#', $xml->asXML())) {
$value = str_replace(array('<value>', '</value>'), '', $xml->asXML());
}
}
}

Expand Down

0 comments on commit d645eb2

Please sign in to comment.