dlarchikov / php-amqplib

Automatically exported from code.google.com/p/php-amqplib
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Exception thrown when publishing a message with body = the digit zero. #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Send an AMQPMessage to an exchange using basic_publish(), with the
message body consisting of the number 0.
2. Close the channel after publish.
3. The program will crash.

What is the expected output? What do you see instead?
Sending response (0) to verify_email exchange...done.
Closing response channel...done.

Instead, I get the following:

Sending response (0) to verify_email exchange...done.
Closing response channel...PHP Fatal error:  Uncaught exception
'AMQPConnectionException' in
/share/userdir/daharon/php-amqplib-framework/framework.php/AMQPConnection.php:29
9
Stack trace:
#0 [internal function]: AMQPConnection->_close(Object(AMQPReader))
#1
/share/userdir/daharon/php-amqplib-framework/framework.php/AMQPAbstractChannel.p
hp(33):
call_user_func(Array, Object(AMQPReader))
#2
/share/userdir/daharon/php-amqplib-framework/framework.php/AMQPAbstractChannel.p
hp(140):
AMQPAbstractChannel->dispatch('10,60', Object(AMQPReader), NULL)
#3
/share/userdir/daharon/php-amqplib-framework/framework.php/AMQPConnection.php(23
4):
AMQPAbstractChannel->wait()
#4
/share/userdir/daharon/php-amqplib-framework/framework.php/AMQPAbstractChannel.p
hp(42):
AMQPConnection->wait_channel(2)
#5
/share/userdir/daharon/php-amqplib-framework/framework.php/AMQPAbstractChannel.p
hp(117):
AMQPAbstractChannel->next_frame()
#6
/share/userdir/daharon/php-amqplib-framework/framework.php/AMQPChannel.php(101):
AMQPAbstractChannel->wait(Array)
#7 /share/userdir/daharon/verify_email_test in
/share/userdir/daharon/php-amqplib-framework/framework.php/AMQPConnection.php
on line 299

What version of the product are you using? On what operating system?
0.6.1, Fedora 10, php-5.2.9

Please provide any additional information below.
Some of the line numbers will not match up because I had to pull the lib
apart so that it would work with our php class auto-loader.

Original issue reported on code.google.com by dalij...@gmail.com on 6 May 2010 at 4:44