|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-11-18 22:17 UTC] pierrick@php.net
[2012-11-18 22:17 UTC] pierrick@php.net
-Status: Open
+Status: Not a bug
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 04:00:01 2025 UTC |
Description: ------------ Stomp sends all of the message properties as strings, when the actual data type is other. Reproduce code: --------------- // PRODUCER // .. set up stomp connection $stomp->send($queue, 1, array('delay'=>90, 'openAfter'=> (int)(time() + 90))); // CONSUMER // .. set up stomp connection $stomp->subscribe($queue ,array('selector' => 'openAfter > 1')); Expected result: ---------------- We should receive the message sent by the producer Actual result: -------------- No message is received. After further inspection, the most likely cause is that the 'openAfter' parameter is sent as a string rather than a int. ActiveMQ selector do not evaluate string into numeric values when using selectors, so we cannot use selectors/properties while using this Stomp library.