1--TEST-- 2Bug #46739 (array returned by curl_getinfo should contain content_type key) 3--SKIPIF-- 4<?php 5if (!extension_loaded("curl")) { 6 exit("skip curl extension not loaded"); 7} 8?> 9--FILE-- 10<?php 11$ch = curl_init('http://127.0.0.1:9/'); 12 13curl_exec($ch); 14$info = curl_getinfo($ch); 15 16echo (array_key_exists('content_type', $info)) ? "set" : "not set"; 17?> 18--EXPECT-- 19set 20