php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65804 pecl-amqp crashes PHP when trying to connect to qpid-cpp-server 0.14
Submitted: 2013-10-01 21:50 UTC Modified: -
From: gauthierm@php.net Assigned:
Status: Open Package: amqp (PECL)
PHP Version: Irrelevant OS: CentOS 6.4
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-10-01 21:50 UTC] gauthierm@php.net
Description:
------------
When you try to connect to qpid-cpp-server 0.14, the following happens:

Expected 0x000A000A method frame on channel 0, got frame type 65
Aborted (core dumped)

qpid-cpp-server uses AMQP 1.0 instead of AMQP 0-9-1 so it shouldn't work per-se, but it should throw an exception and not crash.

Test script:
---------------
$connection = new AMQPConnection();
$connection->setHost('127.0.0.1'); // running qpid on 5672
$connection->connect();

Expected result:
----------------
Thrown AMQPConnectionException saying the AMQP version is not correct.

Actual result:
--------------
Expected 0x000A000A method frame on channel 0, got frame type 65
Aborted (core dumped)

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 14:01:22 2019 UTC