1--TEST--
2Check libcurl config on windows
3--EXTENSIONS--
4curl
5--SKIPIF--
6<?php
7
8if(substr(PHP_OS, 0, 3) != 'WIN' )
9  die("skip for windows only");
10?>
11--FILE--
12<?php
13    ob_start();
14    phpinfo();
15    $s = ob_get_contents();
16    ob_end_clean();
17    preg_match('/curl\n\n(.+)\n\n/siU', $s, $m);
18
19    echo $m[1], "\n";
20
21?>
22DONE
23--EXPECTF--
24cURL support => enabled
25cURL Information => %s
26Age => %d
27Features
28AsynchDNS => Yes
29CharConv => No
30Debug => No
31GSS-Negotiate => No
32IDN => Yes
33IPv6 => Yes
34krb4 => No
35Largefile => Yes
36libz => Yes
37NTLM => Yes
38NTLMWB => No
39SPNEGO => Yes
40SSL => Yes
41SSPI => Yes
42TLS-SRP => No
43HTTP2 => Yes
44GSSAPI => No
45KERBEROS5 => Yes
46UNIX_SOCKETS => %r(Yes|No)%r
47PSL => No
48HTTPS_PROXY => Yes
49MULTI_SSL => %s
50BROTLI => %s
51Protocols => dict, file, ftp, ftps, gopher, %r(gophers, )?%rhttp, https, imap, imaps, ldap, ldaps, %r(mqtt, )?%rpop3, pop3s, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp
52Host => %s-pc-win32
53SSL Version => OpenSSL/%s
54ZLib Version => %s
55libSSH Version => libssh2/%s
56DONE
57