Skip to content

Commit 8d7a489

Browse files
committed
Merge branch '5.3' into 5.4
* 5.3: Fix bug #61405 ext\openssl\tests\022.phpt fails Fix bug #61412 ext\openssl\tests\bug28382.phpt fails
2 parents 7fdd35d + b638d30 commit 8d7a489

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ext/openssl/tests/022.phpt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ openssl_csr_export() tests
55
--FILE--
66
<?php
77
$wrong = "wrong";
8+
$config = __DIR__ . DIRECTORY_SEPARATOR . 'openssl.cnf';
9+
$config_arg = array('config' => $config);
810

911
$dn = array(
1012
"countryName" => "BR",
@@ -18,10 +20,11 @@ $args = array(
1820
"digest_alg" => "sha1",
1921
"private_key_bits" => 2048,
2022
"private_key_type" => OPENSSL_KEYTYPE_DSA,
21-
"encrypt_key" => true
23+
"encrypt_key" => true,
24+
"config" => $config,
2225
);
2326

24-
$privkey = openssl_pkey_new();
27+
$privkey = openssl_pkey_new($config_arg);
2528
$csr = openssl_csr_new($dn, $privkey, $args);
2629
var_dump(openssl_csr_export($csr, $output));
2730
var_dump(openssl_csr_export($wrong, $output));

0 commit comments

Comments
 (0)