From:             ab
Operating system: windows
PHP version:      Irrelevant
Package:          OpenSSL related
Bug Type:         Bug
Bug description:ext\openssl\tests\004.phpt fails

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 bug report at https://bugs.php.net/bug.php?id=61401&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=61401&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=61401&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=61401&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=61401&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=61401&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=61401&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=61401&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=61401&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=61401&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=61401&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=61401&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=61401&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=61401&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=61401&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=61401&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=61401&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=61401&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=61401&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=61401&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=61401&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=61401&r=mysqlcfg

Reply via email to