php-src/ext/curl/tests/bug46739.phpt
Rasmus Lerdorf a37d7529ba The test for bug #46739 doesn't actually need the remote
responder, so get rid of the skipif in PHP 5, and it was
broken in PHP 6 because the keys in the curl_info array 
were not unicode.  All internally-generated arrays should
have unicode keys.
2009-07-26 02:12:38 +00:00

20 lines
368 B
PHP

--TEST--
Bug #46739 (array returned by curl_getinfo should contain content_type key)
--SKIPIF--
<?php
if (!extension_loaded("curl")) {
exit("skip curl extension not loaded");
}
?>
--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