php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73974 Certificate argument should be file://mycert.pem and not mycert.pem
Submitted: 2017-01-23 02:24 UTC Modified: 2017-01-23 12:57 UTC
From: hablutzel1 at gmail dot com Assigned: krakjoe (profile)
Status: Closed Package: OpenSSL related
PHP Version: 7.1.1 OS: Ubuntu 16.04.1 LTS
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: hablutzel1 at gmail dot com
New email:
PHP Version: OS:

 

 [2017-01-23 02:24 UTC] hablutzel1 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.openssl-pkcs7-sign
---
In example #1:

if (openssl_pkcs7_sign("msg.txt", "signed.txt", "mycert.pem",...

Should be:

if (openssl_pkcs7_sign("msg.txt", "signed.txt", "file://mycert.pem",...

See too http://php.net/manual/en/function.openssl-pkcs7-sign.php#21212 for details.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-23 12:56 UTC] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&revision=341751
Log: Fix #73974 incorrect example in openssl_pkcs7_sign documentation
 [2017-01-23 12:57 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2017-01-23 12:57 UTC] krakjoe@php.net
The fix for this bug has been committed.

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.


 [2020-02-07 06:06 UTC] phpdocbot@php.net
Automatic comment on behalf of krakjoe
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=898fbca733167097cb599a2d573f85c124d7b79d
Log: Fix #73974 incorrect example in openssl_pkcs7_sign documentation
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 10:01:38 2025 UTC