xref: /PHP-8.0/ext/curl/tests/bug72189.phpt (revision 7426e3b6)
1--TEST--
2Request #72189 (Add missing CURL_VERSION_* constants)
3--SKIPIF--
4<?php
5include 'skipif.inc';
6?>
7--FILE--
8<?php
9
10$version = curl_version();
11
12$bitfields = [
13    CURL_VERSION_ASYNCHDNS,
14    CURL_VERSION_CONV,
15    CURL_VERSION_CURLDEBUG,
16    CURL_VERSION_DEBUG,
17    CURL_VERSION_GSSNEGOTIATE,
18    CURL_VERSION_IDN,
19    CURL_VERSION_IPV6,
20    CURL_VERSION_KERBEROS4,
21    CURL_VERSION_LARGEFILE,
22    CURL_VERSION_LIBZ,
23    CURL_VERSION_NTLM,
24    CURL_VERSION_SPNEGO,
25    CURL_VERSION_SSL,
26    CURL_VERSION_SSPI,
27];
28
29$matchesCount = 0;
30
31foreach ($bitfields as $feature) {
32    if ($version['features'] & $feature) {
33        ++$matchesCount;
34    }
35}
36
37var_dump($matchesCount > 0);
38
39?>
40--EXPECT--
41bool(true)
42