php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61313 AMQPQueue::cancel is unusable
Submitted: 2012-03-07 08:00 UTC Modified: 2013-04-17 15:27 UTC
From: glen dot mailer at bskyb dot com Assigned: bkw (profile)
Status: Closed Package: amqp (PECL)
PHP Version: Irrelevant OS: Any
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
21 - 14 = ?
Subscribe to this entry?

 
 [2012-03-07 08:00 UTC] glen dot mailer at bskyb dot com
Description:
------------
basic.cancel is used to cancel the action of a previous basic.consume call.

However, this package lets the server generate the consumer tag, and throws away the return value of librabbitmq's amqp_basic_consume function - therefore there's no way of knowing what the consumer tag for the consumption is, and no way of cancelling it.

This manifests itself as any messages being sent to an unreadable buffer if using AMQPQueue::consume and returning FALSE.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-14 01:13 UTC] bkw at codingforce dot com
This has been fixed in version 1.0.9 of the library.
We're still working on getting the documentation updated, but you can read all 
about this particular case here:

https://github.com/pdezwart/php-amqp/pull/12
 [2013-04-17 15:27 UTC] bkw@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: bkw
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 09:01:26 2025 UTC