php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61247 Autogenerated queue name
Submitted: 2012-03-02 15:20 UTC Modified: 2012-03-02 20:09 UTC
From: rahar at seznam dot cz Assigned: pdezwart (profile)
Status: Closed Package: amqp (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rahar at seznam dot cz
New email:
PHP Version: OS:

 

 [2012-03-02 15:20 UTC] rahar at seznam dot cz
Description:
------------
It should be possible to let rabbitmq server generate unique queue name.
Now this is not possible, because AMQPQueue::declare() throws exception when name is not set.

Test script:
---------------
$con = new AMQPConnection();
$con->connect();
$queue = new AMQPQueue(new AMQPChannel($con));
$queue->declare();
echo $queue->getName();

Expected result:
----------------
Should echo auto generated queue name (like 'amq.gen-U0srCoW8TsaXjNh73pnVAw==').

Actual result:
--------------
Throws:
AMQPQueueException: 'Could not declare queue. Queues must have names.'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-02 20:06 UTC] pdezwart@php.net
Automatic comment from SVN on behalf of pdezwart
Revision: http://svn.php.net/viewvc/?view=revision&revision=323840
Log: * Fixing bug: Bug #61247    Autogenerated queue name
 [2012-03-02 20:09 UTC] pdezwart@php.net
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/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

Fixed in trunk, and will be part of 1.0.1 release. Thanks for the feedback!
 [2012-03-02 20:09 UTC] pdezwart@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pdezwart
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Jul 25 15:01:23 2021 UTC