1--TEST-- 2Request #72189 (Add missing CURL_VERSION_* constants) 3--SKIPIF-- 4<?php 5 6include 'skipif.inc'; 7 8$version = curl_version(); 9 10if ($version['version_number'] < 0x071306) { 11 exit('skip: test works only with curl >= 7.19.6'); 12} 13 14?> 15--FILE-- 16<?php 17 18$version = curl_version(); 19 20$bitfields = [ 21 CURL_VERSION_ASYNCHDNS, 22 CURL_VERSION_CONV, 23 CURL_VERSION_CURLDEBUG, 24 CURL_VERSION_DEBUG, 25 CURL_VERSION_GSSNEGOTIATE, 26 CURL_VERSION_IDN, 27 CURL_VERSION_IPV6, 28 CURL_VERSION_KERBEROS4, 29 CURL_VERSION_LARGEFILE, 30 CURL_VERSION_LIBZ, 31 CURL_VERSION_NTLM, 32 CURL_VERSION_SPNEGO, 33 CURL_VERSION_SSL, 34 CURL_VERSION_SSPI, 35]; 36 37$matchesCount = 0; 38 39foreach ($bitfields as $feature) { 40 if ($version['features'] & $feature) { 41 ++$matchesCount; 42 } 43} 44 45var_dump($matchesCount > 0); 46 47?> 48--EXPECT-- 49bool(true) 50