1--TEST-- 2Test curl_getinfo() function with CURLINFO_HTTP_VERSION parameter 3--EXTENSIONS-- 4curl 5--FILE-- 6<?php 7 8include 'server.inc'; 9 10$ch = curl_init(); 11var_dump(0 === curl_getinfo($ch, CURLINFO_HTTP_VERSION)); 12 13$host = curl_cli_server_start(); 14 15$url = "{$host}/get.inc?test="; 16curl_setopt($ch, CURLOPT_URL, $url); 17curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 18curl_exec($ch); 19var_dump(CURL_HTTP_VERSION_1_1 === curl_getinfo($ch, CURLINFO_HTTP_VERSION)); 20curl_close($ch); 21?> 22--EXPECT-- 23bool(true) 24bool(true) 25