php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #50718 OpenSSL* doesnt support streamwrappers
Submitted: 2010-01-10 18:44 UTC Modified: 2010-04-26 12:29 UTC
From: gmblar+php at gmail dot com Assigned:
Status: Open Package: OpenSSL related
PHP Version: 5.3.1 OS: *
Private report: No CVE-ID:
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-01-10 18:44 UTC] gmblar+php at gmail dot com
Description:
------------
OpenSSL* doesnt support streamwrappers

Reproduce code:
---------------
<?php

class StringWrapper {

    public function __call($method, $args) {
        var_dump($method);
        die();
    }

}
stream_wrapper_register('string', 'StringWrapper');
openssl_pkcs7_sign('string://input', 'string://output', 'file://foo.pem',  array("file://bar.pem", ""), array());

?>


Expected result:
----------------
string(11) "stream_open"

Actual result:
--------------
Warning: openssl_pkcs7_sign(): error opening input file string://input! 
in cert.php on line 12

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-26 12:29 UTC] pajoye@php.net
-Package: Feature/Change Request +Package: OpenSSL related
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 24 21:01:55 2014 UTC