php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lwhsu at lwhsu dot org
New email:
PHP Version: OS:

 

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

Patches

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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-08-16 03:23 UTC] pierrick@php.net
Automatic comment from SVN on behalf of pierrick
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=327144
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] pierrick@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pierrick
 [2012-08-16 03:23 UTC] pierrick@php.net
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
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 09 02:01:27 2024 UTC