git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@22024 44c647ce-9c0f-0410-b52a-842ac1e357ba
@@ -158,6 +158,7 @@ abstract class Zend_XmlRpc_Value
{
if (!$this->_xml) {
$this->generateXml();
+ $this->_xml = (string) $this->getGenerator();
}
return $this->_xml;
@@ -169,9 +170,7 @@ abstract class Zend_XmlRpc_Value
*/
public function generateXml()
- if (!$this->_xml) {
- $this->_generateXml();
- }
+ $this->_generateXml();
/**
@@ -68,8 +68,6 @@ class Zend_XmlRpc_Value_Array extends Zend_XmlRpc_Value_Collection
$generator->closeElement('data')
->closeElement('array')
->closeElement('value');
-
- $this->_xml = (string)$generator;
@@ -49,7 +49,5 @@ abstract class Zend_XmlRpc_Value_Scalar extends Zend_XmlRpc_Value
->openElement($this->_type, $this->_value)
->closeElement($this->_type)
@@ -71,6 +71,5 @@ class Zend_XmlRpc_Value_Struct extends Zend_XmlRpc_Value_Collection
$generator->closeElement('struct')