|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesphp_stomp.diff (last revision 2012-08-15 18:07 UTC by lwhsu at lwhsu dot org)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-08-16 03:23 UTC] pierrick@php.net
[2012-08-16 03:23 UTC] pierrick@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: pierrick
[2012-08-16 03:23 UTC] pierrick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 02:00:01 2025 UTC |
Description: ------------ Stomp module seems not initializing SSL library first. When creating a ssl connection like this: $stomp = new Stomp('ssl://localhost:61612'); will get the error: Failed to create the SSL context Proposed patch is attached, please check it. Thanks! Test script: --------------- <?php $queue = '/topic/foo'; $msg = 'bar'; try { $stomp = new Stomp('ssl://localhost:61612'); $stomp->send($queue, $msg." ". date("Y-m-d H:i:s")); } catch(StompException $e) { die('Connection failed: ' . $e->getMessage()); } ?> Expected result: ---------------- (The connection should successfully established and message should be successfully sent.) Actual result: -------------- Connection failed: failed to create the SSL context