Edit report at https://bugs.php.net/bug.php?id=61401&edit=1
ID: 61401 Patch added by: a...@php.net Reported by: a...@php.net Summary: ext\openssl\tests\004.phpt fails Status: Open Type: Bug Package: OpenSSL related Operating System: windows PHP Version: Irrelevant Block user comment: N Private report: N New Comment: The following patch has been added/updated: Patch Name: php53_004.phpt Revision: 1331834867 URL: https://bugs.php.net/patch-display.php?bug=61401&patch=php53_004.phpt&revision=1331834867 Previous Comments: ------------------------------------------------------------------------ [2012-03-15 17:35:08] a...@php.net openssl_pkey_new will fail on windows for the same reason ------------------------------------------------------------------------ [2012-03-15 15:52:37] a...@php.net Description: ------------ When the third param for openssl_csr_new is not specified or empty, the default system config is used. If it could not be found, the code generating the private key is ommited and no warnings appear. On linux the default config path is set to usually existent file /usr/lib/ssl/openssl.cnf , on windows it's /usr/local/ssl/openssl.cnf which won't be found anyway. Test script: --------------- php -r "$a = array(); var_dump(openssl_csr_new(array(),$a,array(),array()));" Expected result: ---------------- Warning: openssl_csr_new(): key array must be of the form array(0 => key, 1 => phrase) in Command line code on line 1 Warning: openssl_csr_new(): add1_attr_by_txt challengePassword_min -> 4 (failed) in Command line code on line 1 bool(false) Actual result: -------------- bool(false) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61401&edit=1