php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #38097 openssl_csr_new documentation incorrect
Submitted: 2006-07-13 15:00 UTC Modified: 2006-09-12 20:33 UTC
From: php at benliles dot com Assigned: bjori (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2006-07-13 15:00 UTC] php at benliles dot com
Description:
------------
The configargs which apply to both openssl_pkey_new and openssl_csr_new have incorrect documentation.  The documentation says that private_key_bits should be a string, but if this argument is not an integer type, the function fails.

Reproduce code:
---------------
$res = openssl_pkey_new (array("private_key_bits"=>"1024"));

if (is_resource($res))
{
openssl_pkey_export ($res, $string);

echo $string;
}
else
{
echo "key generation failed";
}

Expected result:
----------------
I would expect to get a new 1024 bit private key PEM string output.

Actual result:
--------------
key generation failed

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-12 20:33 UTC] bjori@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Aug 10 01:00:03 2025 UTC