note 104900 added to amqp.constants

From: Date: Thu, 14 Jul 2011 15:21:56 +0000
Subject: note 104900 added to amqp.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-181501@lists.php.net to get a copy of this message
On AMQP_NOACK the manual says that "When passed to the consumer method, the messages will not be marked as delivered.". Actually the opposite is true, so if AMQP_NOACK is passed then the messages are marked as delivered. Example 1(This will mark the message as received.): $q = new AMQPQueue($connection); $q->declare($queueName, AMQP_DURABLE); $result = $q->get(AMQP_NOACK); Example 2(This will not mark the message as received, so a manual ack has to be called.): $q = new AMQPQueue($connection); $q->declare($queueName, AMQP_DURABLE); $result = $q->get(0); ---- Server IP: 92.48.74.199 Probable Submitter: 83.217.101.238 ---- Manual Page -- http://www.php.net/manual/en/amqp.constants.php Edit -- https://master.php.net/note/edit/104900 Del: integrated -- https://master.php.net/note/delete/104900/integrated Del: useless -- https://master.php.net/note/delete/104900/useless Del: bad code -- https://master.php.net/note/delete/104900/bad+code Del: spam -- https://master.php.net/note/delete/104900/spam Del: non-english -- https://master.php.net/note/delete/104900/non-english Del: in docs -- https://master.php.net/note/delete/104900/in+docs Del: other reasons-- https://master.php.net/note/delete/104900 Reject -- https://master.php.net/note/reject/104900 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#181501) next »