Download src/php/php-src/ext/curl/tests/bug72189.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 684 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/curl/tests/bug72189.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/curl/tests/bug72189.phpt
-
curl -L -o bug72189.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/curl/tests/bug72189.phpt
684 Bytes
| --TEST-- | |
| Request #72189 (Add missing CURL_VERSION_* constants) | |
| --EXTENSIONS-- | |
| curl | |
| --FILE-- | |
| $version = curl_version(); | |
| $bitfields = [ | |
| CURL_VERSION_ASYNCHDNS, | |
| CURL_VERSION_CONV, | |
| CURL_VERSION_CURLDEBUG, | |
| CURL_VERSION_DEBUG, | |
| CURL_VERSION_GSSNEGOTIATE, | |
| CURL_VERSION_IDN, | |
| CURL_VERSION_IPV6, | |
| CURL_VERSION_KERBEROS4, | |
| CURL_VERSION_LARGEFILE, | |
| CURL_VERSION_LIBZ, | |
| CURL_VERSION_NTLM, | |
| CURL_VERSION_SPNEGO, | |
| CURL_VERSION_SSL, | |
| CURL_VERSION_SSPI, | |
| ]; | |
| $matchesCount = 0; | |
| foreach ($bitfields as $feature) { | |
| if ($version['features'] & $feature) { | |
| ++$matchesCount; | |
| } | |
| } | |
| var_dump($matchesCount > 0); | |
| --EXPECT-- | |
| bool(true) | |