xref: /PHP-8.3/ext/curl/tests/curl_basic_026.phpt (revision de60872c)
1--TEST--
2Test curl_getinfo() function with CURLOPT_* from curl >= 7.81.0
3--EXTENSIONS--
4curl
5--SKIPIF--
6<?php $curl_version = curl_version();
7if ($curl_version['version_number'] < 0x075100) {
8    exit("skip: test works only with curl >= 7.81.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_MIME_OPTIONS, CURLMIMEOPT_FORMESCAPE));
23curl_exec($ch);
24curl_close($ch);
25?>
26--EXPECT--
27bool(true)
28