]> granicus.if.org Git - php/commitdiff
Added test for bug #46739
authorMikko Koppanen <mkoppanen@php.net>
Fri, 5 Dec 2008 11:21:44 +0000 (11:21 +0000)
committerMikko Koppanen <mkoppanen@php.net>
Fri, 5 Dec 2008 11:21:44 +0000 (11:21 +0000)
ext/curl/tests/bug46739.phpt [new file with mode: 0644]

diff --git a/ext/curl/tests/bug46739.phpt b/ext/curl/tests/bug46739.phpt
new file mode 100644 (file)
index 0000000..4e24b2f
--- /dev/null
@@ -0,0 +1,13 @@
+--TEST--
+Test bug #46739
+--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