ID:               38097
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php at benliles dot com
-Status:           Verified
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: Irrelevant
 PHP Version:      Irrelevant
-Assigned To:      
+Assigned To:      bjori
 New Comment:

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.




Previous Comments:
------------------------------------------------------------------------

[2006-07-13 15:00:37] 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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38097&edit=1

Reply via email to