|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61749 Binary messages are truncated
Submitted: 2012-04-16 21:52 UTC Modified: 2012-07-18 09:14 UTC
From: mls at o2 dot pl Assigned: pdezwart (profile)
Status: Closed Package: amqp (PECL)
PHP Version: 5.3.10 OS: Mac OSX 10.7.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: mls at o2 dot pl
New email:
PHP Version: OS:


 [2012-04-16 21:52 UTC] mls at o2 dot pl
It's impossible to GET/CONSUME message which contains pure binary data - body 
gets truncated to few bytes. For example, frame with about 500 bytes is sent to 
queue correctly, but when reading the same frame body contains only 2 bytes. The 
same frame can be read correctly using RabbitMQ Web Management Plugin or with 

Test script:
$data = igbinary_serialize(array('test1' => 'test value 1', 'test2' => 'test value 2'));
$pack = gzdeflate($data, 2);
$message = pack('VVa*', strlen($pack), strlen($data), $pack);
$exchange->publish($message, $queue, 0);


amqp-binary-messages (last revision 2012-04-17 17:40 UTC by mls at o2 dot pl)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-18 23:08 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: pdezwart
 [2012-06-19 10:13 UTC]
Related to #62352
 [2012-07-18 09:14 UTC]
-Status: Assigned +Status: Closed
 [2012-07-18 09:14 UTC]
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at

Fixed in 1.0.4. Thanks for the help!
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Mar 26 18:03:38 2023 UTC