php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62696 Incorrect exchange type
Submitted: 2012-07-30 15:43 UTC Modified: 2012-08-26 02:48 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: dolphin at sendmail dot ru Assigned: pdezwart (profile)
Status: Closed Package: amqp (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2012-07-30 15:43 UTC] dolphin at sendmail dot ru
Description:
------------
According to http://www.rabbitmq.com/resources/specs/amqp0-9-1.pdf there is no 
type 'header'. The valid exchange type is 'headers'

Test script:
---------------
$amqp_ex = new AMQPExchange($amqp_channel);
$amqp_ex->SetName('test');
$amqp_ex->SetType(AMQP_EX_TYPE_HEADER);
$amqp_ex->declare();



Expected result:
----------------
No errors

Actual result:
--------------
PHP Fatal error:  Uncaught exception 'AMQPExchangeException' with message 'Server 
connection error: 503, message: COMMAND_INVALID - invalid exchange type 'header'' 
in ...

Patches

exchange_type_headers (last revision 2012-07-30 15:44 UTC by dolphin at sendmail dot ru)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-26 02:47 UTC] pdezwart@php.net
Automatic comment from SVN on behalf of pdezwart
Revision: http://svn.php.net/viewvc/?view=revision&revision=327277
Log: Fixing Bug #62696   Incorrect exchange type
 [2012-08-26 02:48 UTC] pdezwart@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pdezwart
 [2012-08-26 02:48 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.

Will be part of 1.0.5 release. Thanks!
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Oct 21 21:03:32 2021 UTC