php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #63436 error in openssl_seal documented example #1
Submitted: 2012-11-04 18:03 UTC Modified: 2015-04-16 11:45 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: muhanad_alkhalisy at yahoo dot com Assigned:
Status: No Feedback Package: Documentation problem
PHP Version: 5.3.18 OS: windows 7
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: muhanad_alkhalisy at yahoo dot com
New email:
PHP Version: OS:

 

 [2012-11-04 18:03 UTC] muhanad_alkhalisy at yahoo dot com
Description:
------------
---
From manual page: http://www.php.net/function.openssl-seal#refsect1-
function.openssl-seal-examples
---


Test script:
---------------
$ekeys = array();
openssl_seal($data, $sealed, $ekeys, array($pk1, $pk2));

Expected result:
----------------
return multiple envelop keys related to public keys  


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-07 19:27 UTC] mail+php at requinix dot net
I can't tell what the problem (or the fix) is supposed to be. That $ekeys is 
undefined before it's passed to openssl_seal()? That's okay, it's by-reference so 
the function will create the variable for you.

Please explain where the bug is.
 [2015-04-16 11:45 UTC] requinix@php.net
-Status: Open +Status: No Feedback
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 21:01:34 2025 UTC