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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to