File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -8,28 +8,35 @@ fail by default. Curl >= 7.71.0 has a CURLOPT_SSL_OPTIONS = CURLSSLOPT_NATIVE_CA
88to Windows root CA store.
99--SKIPIF--
1010<?php
11- if (getenv ("SKIP_ONLINE_TESTS " )) die ("skip online test " );
12- $ curl_version = curl_version ();
13- if ($ curl_version ['version_number ' ] < 0x074700 ) {
14- die ("skip: test works only with curl >= 7.71.0 " );
11+
12+ // if (getenv("SKIP_ONLINE_TESTS")) die("skip online test");
13+
14+ if (curl_version ()['version_number ' ] < 0x074700 ) {
15+ // die("skip: test works only with curl >= 7.71.0");
1516}
16- ?>
17- --INI--
1817
18+ ?>
1919--FILE--
2020<?php
2121 $ ch = curl_init ('https://sha256.badssl.com/ ' );
22+ var_dump (__LINE__ );
2223 $ cert = curl_getinfo ($ ch , CURLINFO_CAINFO );
2324 var_dump ($ cert );
25+ var_dump (__LINE__ );
2426 curl_setopt_array ($ ch , [
2527 CURLOPT_RETURNTRANSFER => true ,
2628 CURLOPT_SSL_VERIFYHOST => 2 ,
2729 CURLOPT_SSL_VERIFYPEER => 1 ,
2830 ]);
2931
32+ var_dump (__LINE__ );
3033 curl_exec ($ ch );
34+ var_dump (__LINE__ );
3135 var_dump (curl_getinfo ($ ch , CURLINFO_SSL_VERIFYRESULT ));
36+ var_dump (__LINE__ );
3237 var_dump (ini_get ('curl.cainfo ' ));
38+ var_dump (__LINE__ );
39+ var_dump (curl_version ());
3340?>
3441--EXPECT--
3542int(0)
You can’t perform that action at this time.
0 commit comments