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


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