]> granicus.if.org Git - php/commitdiff
Fix OpenSSL online test for ca context
authorJakub Zelenka <bukka@php.net>
Sun, 5 May 2019 20:04:28 +0000 (21:04 +0100)
committerJakub Zelenka <bukka@php.net>
Sun, 5 May 2019 20:04:28 +0000 (21:04 +0100)
The php.net is redirected to https so use nginx.org

ext/openssl/tests/bug65538_002.phpt

index 7dddb12564bf9aaaf743f4ce9be34565fd940dda..2a06d2d1b65abee323a0b95603235ff207753918 100644 (file)
@@ -13,7 +13,7 @@ $clientCtx = stream_context_create(['ssl' => [
     // We can't use http://curl.haxx.se/ca/cacert.pem for this test
     // as it is redirected to https which means the test would depend
     // on system cafile when opening stream.
-    'cafile' => 'http://www.php.net',
+    'cafile' => 'http://www.nginx.org',
 ]]);
 file_get_contents('https://github.com', false, $clientCtx);
 ?>