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