php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61401 ext\openssl\tests\004.phpt fails
Submitted: 2012-03-15 15:52 UTC Modified: 2012-03-28 15:39 UTC
From: ab@php.net Assigned: ab (profile)
Status: Closed Package: OpenSSL related
PHP Version: Irrelevant OS: windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
7 + 42 = ?
Subscribe to this entry?

 
 [2012-03-15 15:52 UTC] ab@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)


Patches

php53_004.patch (last revision 2012-03-15 18:24 UTC by ab@php.net)
php54_004.patch (last revision 2012-03-15 18:23 UTC by ab@php.net)
php54_004.phpt (last revision 2012-03-15 18:09 UTC by ab@php.net)
php53_004.phpt (last revision 2012-03-15 18:07 UTC by ab@php.net)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-15 17:35 UTC] ab@php.net
openssl_pkey_new will fail on windows for the same reason
 [2012-03-15 18:07 UTC] ab@php.net
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
 [2012-03-15 18:09 UTC] ab@php.net
The following patch has been added/updated:

Patch Name: php54_004.phpt
Revision:   1331834944
URL:        https://bugs.php.net/patch-display.php?bug=61401&patch=php54_004.phpt&revision=1331834944
 [2012-03-15 18:23 UTC] ab@php.net
The following patch has been added/updated:

Patch Name: php54_004.patch
Revision:   1331835811
URL:        https://bugs.php.net/patch-display.php?bug=61401&patch=php54_004.patch&revision=1331835811
 [2012-03-15 18:24 UTC] ab@php.net
The following patch has been added/updated:

Patch Name: php53_004.patch
Revision:   1331835859
URL:        https://bugs.php.net/patch-display.php?bug=61401&patch=php53_004.patch&revision=1331835859
 [2012-03-15 18:36 UTC] ab@php.net
The patches set the appropriate config option, which overrides the wrong global 
valie.
 [2012-03-16 11:11 UTC] ab@php.net
-Assigned To: +Assigned To: mattficken
 [2012-03-28 15:34 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=bff8152565375c863f67833b73e2629c4d50cf63
Log: Fix bug #61401 ext\openssl\tests\004.phpt fails
 [2012-03-28 15:39 UTC] ab@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2012-03-28 15:39 UTC] ab@php.net
-Status: Assigned +Status: Closed -Assigned To: mattficken +Assigned To: ab
 [2012-03-29 04:23 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=bff8152565375c863f67833b73e2629c4d50cf63
Log: Fix bug #61401 ext\openssl\tests\004.phpt fails
 [2012-04-02 22:59 UTC] mattficken@php.net
This patch passes on PHP5.3.11rc1 on Windows 7 sp1x64.

It does not break for me on Linux x64 (Gentoo and Fedora 16) with PHP5.3.11rc1.
 [2014-10-07 23:28 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=bff8152565375c863f67833b73e2629c4d50cf63
Log: Fix bug #61401 ext\openssl\tests\004.phpt fails
 [2014-10-07 23:38 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=bff8152565375c863f67833b73e2629c4d50cf63
Log: Fix bug #61401 ext\openssl\tests\004.phpt fails
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 08:01:29 2024 UTC