|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-09-12 20:33 UTC] bjori@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 13:00:01 2025 UTC |
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