php-src/ext/curl/tests/bug46739.phpt

14 lines
271 B
Plaintext
Raw Normal View History

2008-12-05 11:21:44 +00:00
--TEST--
2008-12-17 14:00:20 +00:00
Bug #46739 (array returned by curl_getinfo should contain content_type key)
2008-12-05 11:21:44 +00:00
--FILE--
<?php
$ch = curl_init('http://127.0.0.1:9/');
curl_exec($ch);
$info = curl_getinfo($ch);
echo (array_key_exists('content_type', $info)) ? "set" : "not set";
?>
--EXPECT--
set