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