Doc #53645 [Asn->Csd]: Wrong return type for AMQPQueue::consume

From: Date: Thu, 10 Feb 2011 15:09:05 +0000
Subject: Doc #53645 [Asn->Csd]: Wrong return type for AMQPQueue::consume
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5961@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53645&edit=1 ID: 53645 Updated by: vrana@php.net Reported by: ruedu at dustinrue dot com -Summary: Documentation is unclear or wrong +Summary: Wrong return type for AMQPQueue::consume -Status: Assigned +Status: Closed Type: Documentation Problem Package: Unknown/Other Function PHP Version: Irrelevant Assigned To: pdezwart Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2011-02-10 16:08:58] vrana@php.net Automatic comment from SVN on behalf of vrana Revision: http://svn.php.net/viewvc/?view=revision&revision=308199 Log: Fix proto (doc bug #53645) ------------------------------------------------------------------------ [2011-01-04 20:13:39] ruedu at dustinrue dot com RabbitMQ version: 2.2.0 RabbitMQ-c version: Fri, 17 Dec 2010 13:37:18 -0500 PHP version: PHP 5.3.2-1ubuntu4.5 with Suhosin-Patch (cli) (built: Sep 17 2010 13:49:46) I used the basic example provided on the page with an existing queue. The queue count is reduced each time I run the script but there is no output. I realize now that my PHP version is a bit older but regardless of the PHP version, the documentation conflicts itself. In one place it claims the function returns nothing, later on it says an array is returned. I'll try compiling PHP from source to see if it fixes the issue I'm seeing. Thanks ------------------------------------------------------------------------ [2011-01-04 19:56:15] pdezwart@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Using the basic example I was able to dump out messages from the given queue. Can you please provide more information: - version of RabbitMQ broker - version of rabbit-c client - version of PHP - Script + output Thanks. ------------------------------------------------------------------------ [2011-01-04 14:03:10] aharvey@php.net Looks like it returns an array sometimes. Pieter, can you clarify under what circumstances consume() returns an array and when it doesn't? ------------------------------------------------------------------------ [2011-01-03 23:06:33] ruedu at dustinrue dot com Description: ------------ --- From manual page: http://www.php.net/amqpqueue.consume --- Documentation for AMQPQueue::consume claims you'll get an array returned but the function declaration suggests the method returns nothing. Using the method in a script seems to support that the method returns nothing. Expected result: ---------------- Documentation needs to be updated as well as the example on the page. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53645&edit=1

« previous php.doc.bugs (#5961) next »