Skip to content

Commit 41db75c

Browse files
committed
Fix the path to the .pem
1 parent 19d13e2 commit 41db75c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/openssl/tests/bug54992.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if (!function_exists('pcntl_fork')) die("skip no fork");
88
<?php
99
$context = stream_context_create();
1010

11-
stream_context_set_option($context, 'ssl', 'local_cert', "./bug54992.pem");
11+
stream_context_set_option($context, 'ssl', 'local_cert', __DIR__ . "/bug54992.pem");
1212
stream_context_set_option($context, 'ssl', 'allow_self_signed', true);
1313
$server = stream_socket_server('ssl://127.0.0.1:64321', $errno, $errstr,
1414
STREAM_SERVER_BIND|STREAM_SERVER_LISTEN, $context);
@@ -22,7 +22,7 @@ if ($pid == -1) {
2222
array(
2323
'ssl' => array(
2424
'verify_peer' => true,
25-
'cafile' => 'bug54992-ca.pem',
25+
'cafile' => __DIR__ . '/bug54992-ca.pem',
2626
'CN_match' => 'buga_buga',
2727
)
2828
)

0 commit comments

Comments
 (0)