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
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: gmblar+php at gmail dot com Assigned:
Status: Open Package: OpenSSL related
PHP Version: 5.3.1 OS: *
Private report: No CVE-ID: None
 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-26 12:29 UTC] pajoye@php.net
-Package: Feature/Change Request +Package: OpenSSL related
 [2017-11-13 10:44 UTC] kelunik@php.net
I've noticed this as well. This can be a pain point if using a custom CA file which is packaged in a PHAR. It needs to be dynamically copied out of the PHAR to be used.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 11:01:29 2024 UTC