|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62831 Stomp module seems not initializing SSL library first
Submitted: 2012-08-15 18:05 UTC Modified: 2012-08-16 03:23 UTC
From: lwhsu at lwhsu dot org Assigned: pierrick (profile)
Status: Closed Package: stomp (PECL)
PHP Version: 5.3.15 OS: FreeBSD, Linux
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 !
Your email address:
Solve the problem:
44 - 19 = ?
Subscribe to this entry?

 [2012-08-15 18:05 UTC] lwhsu at lwhsu dot org
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:

$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 

Actual result:
Connection failed: failed to create the SSL context


php_stomp.diff (last revision 2012-08-15 18:07 UTC by lwhsu at lwhsu dot org)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-16 03:23 UTC]
Automatic comment from SVN on behalf of pierrick
Log: Fixed bug #62831 (Stomp module seems not initializing SSL library first). (Patch by lwhsu at lwhsu dot org)
 [2012-08-16 03:23 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: pierrick
 [2012-08-16 03:23 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Sep 29 05:05:53 2022 UTC