|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #60031 incorrect document and example
Submitted: 2011-10-10 17:44 UTC Modified: 2011-12-03 19:23 UTC
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:2 (100.0%)
From: tasanakorn at gmail dot com Assigned:
Status: Not a bug Package: amqp (PECL)
PHP Version: 5.3.8 OS: Linux
Private report: No CVE-ID: None
 [2011-10-10 17:44 UTC] tasanakorn at gmail dot com
AMQP_NOACK mean don't need to ack(). 
This method should used with a message this is retrieved without the AMQP_NOACK 


/* Create a connection using all default credentials: */
$connection = new AMQPConnection();

/* create a queue object */
$queue = new AMQPQueue($connection);

//declare the queue

//get the next message, but don't mark it as delivered
$message = $queue->get(0);

echo $message['msg'];

//acknowledge the message as received

From manual page:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-12-03 19:23 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

This method seems to be documented correctly. Presumably, the idea behind this is 
to allow one to delay acknowledgement of the receipt of a message until it has 
been parsed and verified. So, one would pass AMQP_NOACK to the get method, check 
the message, and then if the message is valid, acknowledge it with the ack 
 [2011-12-03 19:23 UTC]
-Status: Open +Status: Bogus
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 30 02:01:23 2020 UTC