You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2012/10/25 20:46:41 UTC
svn commit: r1402266 - in /qpid/proton/trunk/proton-c/bindings:
php/proton.php python/proton.py
Author: rhs
Date: Thu Oct 25 18:46:40 2012
New Revision: 1402266
URL: http://svn.apache.org/viewvc?rev=1402266&view=rev
Log:
fixed bug in binding logic
Modified:
qpid/proton/trunk/proton-c/bindings/php/proton.php
qpid/proton/trunk/proton-c/bindings/python/proton.py
Modified: qpid/proton/trunk/proton-c/bindings/php/proton.php
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/bindings/php/proton.php?rev=1402266&r1=1402265&r2=1402266&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/php/proton.php (original)
+++ qpid/proton/trunk/proton-c/bindings/php/proton.php Thu Oct 25 18:46:40 2012
@@ -212,6 +212,8 @@ class Message {
if ($this->properties != null)
$props->put_object($this->properties);
if ($this->body != null)
+ // XXX: move this out when load/save are gone
+ $body->clear();
$body->put_object($this->body);
}
Modified: qpid/proton/trunk/proton-c/bindings/python/proton.py
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/bindings/python/proton.py?rev=1402266&r1=1402265&r2=1402266&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/python/proton.py (original)
+++ qpid/proton/trunk/proton-c/bindings/python/proton.py Thu Oct 25 18:46:40 2012
@@ -379,6 +379,8 @@ class Message(object):
if self.properties is not None:
props.put_object(self.properties)
if self.body is not None:
+ # XXX: move this out when load/save are gone
+ body.clear()
body.put_object(self.body)
def _post_decode(self):
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org