xref: /PHP-7.4/ext/curl/tests/bug46739.phpt (revision 079905ac)
1--TEST--
2Bug #46739 (array returned by curl_getinfo should contain content_type key)
3--SKIPIF--
4<?php
5include 'skipif.inc';
6?>
7--FILE--
8<?php
9include 'server.inc';
10$host = curl_cli_server_start();
11$ch = curl_init("{$host}/get.inc");
12curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
13
14curl_exec($ch);
15$info = curl_getinfo($ch);
16
17echo (array_key_exists('content_type', $info)) ? "set" : "not set";
18?>
19--EXPECT--
20set
21