1--TEST-- 2Test curl_getinfo() function with CURLOPT_* from curl >= 7.86.0 3--EXTENSIONS-- 4curl 5--SKIPIF-- 6<?php $curl_version = curl_version(); 7if ($curl_version['version_number'] < 0x075600) { 8 exit("skip: test works only with curl >= 7.86.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); 22// Return value depends on if support is enabled or not 23var_dump(curl_setopt($ch, CURLOPT_WS_OPTIONS, 0)); 24var_dump(curl_setopt($ch, CURLOPT_WS_OPTIONS, CURLWS_RAW_MODE)); 25curl_exec($ch); 26curl_close($ch); 27?> 28--EXPECTF-- 29bool(%s) 30bool(%s) 31