From: php at benliles dot com Operating system: Irrelevant PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: openssl_csr_new documentation incorrect
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 bug report at http://bugs.php.net/?id=38097&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38097&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38097&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38097&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38097&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38097&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38097&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38097&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38097&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38097&r=support Expected behavior: http://bugs.php.net/fix.php?id=38097&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38097&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38097&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38097&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38097&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38097&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38097&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38097&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38097&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38097&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38097&r=mysqlcfg