note 104900 deleted from amqp.constants by thiago

From: Date: Thu, 14 Jul 2011 16:52:21 +0000
Subject: note 104900 deleted from amqp.constants by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181504@lists.php.net to get a copy of this message
Note Submitter: bogdan dot albei at gmail dot com ---- 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);

« previous php.notes (#181504) next »