|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76951 Stomp::hasFrame return true when ActiveMQ shutdown
Submitted: 2018-09-30 06:09 UTC Modified: -
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: jiangyuwise at gmail dot com Assigned:
Status: Open Package: stomp (PECL)
PHP Version: 7.2.10 OS: centos7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
10 + 13 = ?
Subscribe to this entry?

 [2018-09-30 06:09 UTC] jiangyuwise at gmail dot com
I'm trying to use stomp extension to read message from activeMQ.
But when the activeMQ has shut down, the Stomp::hasFrame function returns true.

Test script:
try {
    $stomp = new Stomp($hosts);
    sleep(10); // shut down activeMQ quickly
    $hasFrame = $stomp->hasFrame($queue);
    if ($hasFrame) {
        // read frame
} catch (StompException $e) {
    echo $e->getCode(), ': ', $e->getMessage(), PHP_EOF;


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Sep 27 21:05:53 2022 UTC