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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 12:01:36 2025 UTC