Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amqp_test.php errors #21

Open
GoogleCodeExporter opened this issue Mar 28, 2015 · 1 comment
Open

amqp_test.php errors #21

GoogleCodeExporter opened this issue Mar 28, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

I am running rabbitmq-server_2.2.0-1_all.deb on Ubuntu Server Lucid 64 bit and 
get the following error when running amqp_test.php

Creating connection
< [hex]:
0000  41 4D 51 50 01 01 09 01                            AMQP....

waiting for 10,10
waiting for a new frame
PHP Warning:  feof() expects parameter 1 to be resource, object given in 
/usr/src/rabbit/php-amqplib-read-only/amqp_wire.inc on line 302
PHP Warning:  fread() expects parameter 1 to be resource, object given in 
/usr/src/rabbit/php-amqplib-read-only/amqp_wire.inc on line 303
Caught exception: Error reading data. Recevived 0 instead of expected 1 bytes
Trace:
#0 /usr/src/rabbit/php-amqplib-read-only/amqp_wire.inc(348): 
AMQPReader->rawread(1)
#1 /usr/src/rabbit/php-amqplib-read-only/amqp.inc(494): AMQPReader->read_octet()
#2 /usr/src/rabbit/php-amqplib-read-only/amqp.inc(514): 
AMQPConnection->wait_frame()
#3 /usr/src/rabbit/php-amqplib-read-only/amqp.inc(166): 
AMQPConnection->wait_channel(0)
#4 /usr/src/rabbit/php-amqplib-read-only/amqp.inc(251): 
AbstractChannel->next_frame()
#5 /usr/src/rabbit/php-amqplib-read-only/amqp.inc(350): 
AbstractChannel->wait(Array)
#6 /usr/src/rabbit/php-amqplib-read-only/amqp_test.php(21): 
AMQPConnection->__construct('localhost', 5672, 'guest', '123456')
#7 {main}< [hex]:
0000  01 00 00 00 00 00 0B 00  0A 00 3C 00 00 00 00 00   ........ ..<.....
0010  00 00 CE                                           ..Î

< 10,60: Connection.close
waiting for 10,61
waiting for a new frame
PHP Warning:  feof() expects parameter 1 to be resource, object given in 
/usr/src/rabbit/php-amqplib-read-only/amqp_wire.inc on line 302
PHP Warning:  fread() expects parameter 1 to be resource, object given in 
/usr/src/rabbit/php-amqplib-read-only/amqp_wire.inc on line 303
PHP Fatal error:  Exception thrown without a stack frame in Unknown on line 0

Original issue reported on code.google.com by [email protected] on 28 Jan 2011 at 12:12

@GoogleCodeExporter
Copy link
Author

I resolved the issue by using the version from github: 
https://github.com/tnc/php-amqplib

Original comment by [email protected] on 11 Feb 2011 at 12:34

  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant