Hi,<br><br>The situation Finn describes where having no message delivery flags sounds like a bug in amqphp.� Are the content-type / content-encoding parameters required by Amqp / RabbitMQ?<br><br>Thanks,<br>--Robin<br><br>
<div class="gmail_quote">On Tue, Feb 8, 2011 at 2:08 AM, finn colman <span dir="ltr">&lt;<a href="mailto:finncolman@yahoo.co.nz">finncolman@yahoo.co.nz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I have found the solution to my problem.<br>
I set found out that the flags were the content-type and content-encoding. When<br>
I set these properties in the python code then I could consumer the message on<br>
the PHP side without an exception being thrown.<br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
----- Original Message ----<br>
From: finn colman &lt;<a href="mailto:finncolman@yahoo.co.nz">finncolman@yahoo.co.nz</a>&gt;<br>
To: <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
Sent: Tue, 8 February, 2011 12:17:08 PM<br>
Subject: New Open source AMQP implementation, problems with integrating using<br>
different langauges<br>
<br>
Hi there.<br>
I have a python program that talks to a rabbit MQ server using its own library.<br>
On my end I am running Robin&#39;s AMQP PHP<br>
library,<a href="https://github.com/BraveSirRobin/amqphp" target="_blank">https://github.com/BraveSirRobin/amqphp</a> to connect to the Rabbit MQ<br>
server. I can submit a message to the queue and the python side can read it, but<br>
<br>
if the python side submits a message to the queue and the PHP side tries to<br>
consume it I am getting an Exception thrown from inside amqp.wire.php:<br>
&quot;Unexpected message property flags&quot;.<br>
This is happening because the strlen($binFlags) is evaluating to 0 in this case.<br>
<br>
If I run it using PHP submitted messages then it correctly evaliuates to a<br>
length of 16.<br>
The binary flags is 1100000000000000(49152) for a PHP suibmitted message read<br>
off the queue, but it is 0 for the message read off the queue that was put there<br>
<br>
by python.<br>
What is causing this? Also what do these flags really represent.<br>
As a temporary work around I have managed to get the code to read the message by<br>
<br>
simply commenting out these three lines of code that check this binary flags<br>
length.<br>
Thanks.<br>
<br>
<br>
<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br>