#38097 [Opn->Ver]: openssl_csr_new documentation incorrect

From: Date: Tue, 12 Sep 2006 20:05:56 +0000
Subject: #38097 [Opn->Ver]: openssl_csr_new documentation incorrect
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969374007@lists.php.net to get a copy of this message
ID: 38097 Updated by: bjori@php.net 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

« previous php.doc (#969374007) next »