Doc #53645 [Fbk->Asn]: Documentation is unclear or wrong
| From: | ruedu at dustinrue dot com | Date: | Tue, 04 Jan 2011 19:13:40 +0000 |
| Subject: | Doc #53645 [Fbk->Asn]: Documentation is unclear or wrong | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5749@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
User updated by: ruedu at dustinrue dot com
Reported by: ruedu at dustinrue dot com
Summary: Documentation is unclear or wrong
-Status: Feedback
+Status: Assigned
Type: Documentation Problem
Package: Unknown/Other Function
PHP Version: Irrelevant
Assigned To: pdezwart
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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