1--TEST-- 2Test curl_getinfo() function with CURLOPT_* from curl >= 7.87.0 3--EXTENSIONS-- 4curl 5--SKIPIF-- 6<?php $curl_version = curl_version(); 7if ($curl_version['version_number'] < 0x075700) { 8 exit("skip: test works only with curl >= 7.87.0"); 9} 10?> 11--FILE-- 12<?php 13include 'server.inc'; 14 15$ch = curl_init(); 16 17$host = curl_cli_server_start(); 18 19$url = "{$host}/get.inc?test="; 20curl_setopt($ch, CURLOPT_URL, $url); 21curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 22var_dump(curl_setopt($ch, CURLOPT_CA_CACHE_TIMEOUT, 1)); 23var_dump(curl_setopt($ch, CURLOPT_QUICK_EXIT, 1000)); 24curl_exec($ch); 25curl_close($ch); 26?> 27--EXPECT-- 28bool(true) 29bool(true) 30