Download src/php/php-src/ext/curl/tests/check_win_config.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/curl/tests/check_win_config.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/curl/tests/check_win_config.phpt
-
curl -L -o check_win_config.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/curl/tests/check_win_config.phpt
1.11 kB
| --TEST-- | |
| Check libcurl config on windows | |
| --EXTENSIONS-- | |
| curl | |
| --SKIPIF-- | |
| <?php | |
| if(substr(PHP_OS, 0, 3) != 'WIN' ) | |
| die("skip for windows only"); | |
| ?> | |
| --FILE-- | |
| <?php | |
| ob_start(); | |
| phpinfo(); | |
| $s = ob_get_contents(); | |
| ob_end_clean(); | |
| preg_match('/curl\n\n(.+)\n\n/siU', $s, $m); | |
| echo $m[1], "\n"; | |
| ?> | |
| DONE | |
| --EXPECTF-- | |
| cURL support => enabled | |
| cURL Information => %s | |
| Age => %d | |
| Features | |
| AsynchDNS => Yes | |
| CharConv => No | |
| Debug => No | |
| GSS-Negotiate => No | |
| IDN => Yes | |
| IPv6 => Yes | |
| krb4 => No | |
| Largefile => Yes | |
| libz => Yes | |
| NTLM => Yes | |
| NTLMWB => No | |
| SPNEGO => Yes | |
| SSL => Yes | |
| SSPI => Yes | |
| TLS-SRP => No | |
| HTTP2 => Yes | |
| GSSAPI => No | |
| KERBEROS5 => Yes | |
| UNIX_SOCKETS => %r(Yes|No)%r | |
| PSL => No | |
| HTTPS_PROXY => Yes | |
| MULTI_SSL => %s | |
| BROTLI => %s | |
| ALTSVC => Yes | |
| HTTP3 => No | |
| UNICODE => No | |
| ZSTD => No | |
| HSTS => Yes | |
| GSASL => No | |
| Protocols => 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%r(, ws)?(, wss)?%r | |
| Host => %s-pc-win32 | |
| SSL Version => OpenSSL/%s | |
| ZLib Version => %s | |
| libSSH Version => libssh2/%s | |
| DONE | |