bug46739.phpt 390 B

123456789101112131415161718
  1. --TEST--
  2. Bug #46739 (array returned by curl_getinfo should contain content_type key)
  3. --EXTENSIONS--
  4. curl
  5. --FILE--
  6. <?php
  7. include 'server.inc';
  8. $host = curl_cli_server_start();
  9. $ch = curl_init("{$host}/get.inc");
  10. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  11. curl_exec($ch);
  12. $info = curl_getinfo($ch);
  13. echo (array_key_exists('content_type', $info)) ? "set" : "not set";
  14. ?>
  15. --EXPECT--
  16. set