Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C1D5211AC9 for ; Wed, 6 Aug 2014 17:38:45 +0000 (UTC) Received: (qmail 3423 invoked by uid 500); 6 Aug 2014 17:38:45 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 3379 invoked by uid 500); 6 Aug 2014 17:38:45 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 3365 invoked by uid 99); 6 Aug 2014 17:38:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2014 17:38:44 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gsim@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2014 17:38:39 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s76HcHTE017318 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 6 Aug 2014 13:38:17 -0400 Received: from [10.36.116.47] (ovpn-116-47.ams2.redhat.com [10.36.116.47]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s76HcFBl011012 for ; Wed, 6 Aug 2014 13:38:16 -0400 Message-ID: <53E26811.9080201@redhat.com> Date: Wed, 06 Aug 2014 18:38:25 +0100 From: Gordon Sim Organization: Red Hat UK Ltd, Registered in England and Wales under Company Registration No. 3798903, Directors: Michael Cunningham (USA), Matt Parsons (USA), Charlie Peters (USA), Michael O'Neill (Ireland) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: users@activemq.apache.org Subject: Re: ActiveMQ / AMQP / PHP References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Virus-Checked: Checked by ClamAV on apache.org On 08/06/2014 06:02 PM, Frizz wrote: > Hi there, > > I'm trying to access ActiveMQ (5.10) via AMQP in PHP code. > > Is there some sample code for that? > > I use a AMQPConnection in PHP to connect, but get a strange error message: > 'PhpAmqpLib\Exception\AMQPRuntimeException' with message 'Error reading > data. Received 0 instead of expected 7 bytes' > > Might this be a problem with credentials? What version of AMQP does your php library speak, do you know? It might be using an outdated version while the broker requires version 1.0.