dis-bench / src /php /php-src /ext /curl /tests /bug46739.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
390 Bytes
--TEST--
Bug #46739 (array returned by curl_getinfo should contain content_type key)
--EXTENSIONS--
curl
--FILE--
<?php
include 'server.inc';
$host = curl_cli_server_start();
$ch = curl_init("{$host}/get.inc");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
$info = curl_getinfo($ch);
echo (array_key_exists('content_type', $info)) ? "set" : "not set";
?>
--EXPECT--
set