|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests |
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 12:00:01 2025 UTC |
Description: ------------ 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); $stomp->subscribe($queue); sleep(10); // shut down activeMQ quickly $hasFrame = $stomp->hasFrame($queue); var_dump($hasFrame); if ($hasFrame) { // read frame } } catch (StompException $e) { echo $e->getCode(), ': ', $e->getMessage(), PHP_EOF; }