mirror of
https://github.com/php/php-src.git
synced 2024-10-18 23:12:35 +00:00
a37d7529ba
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.
20 lines
368 B
PHP
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
|