Skip to content

Commit 6857081

Browse files
committed
Fix test for bug62890 to not depend on system cert store
1 parent 4a10037 commit 6857081

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/openssl/tests/bug62890.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ if (getenv('SKIP_ONLINE_TESTS')) die('skip online test');
99
default_socket_timeout=-1
1010
--FILE--
1111
<?php
12-
var_dump((bool) file_get_contents('https://php.net'));
12+
$clientCtx = stream_context_create(['ssl' => ['verify_peer' => false]]);
13+
var_dump((bool) file_get_contents('https://www.php.net', false, $clientCtx));
1314
?>
1415
--EXPECT--
1516
bool(true)

0 commit comments

Comments
 (0)