summaryrefslogtreecommitdiff
path: root/ext/curl/tests/bug54995.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/curl/tests/bug54995.phpt')
-rw-r--r--ext/curl/tests/bug54995.phpt26
1 files changed, 26 insertions, 0 deletions
diff --git a/ext/curl/tests/bug54995.phpt b/ext/curl/tests/bug54995.phpt
new file mode 100644
index 0000000000..4af59948be
--- /dev/null
+++ b/ext/curl/tests/bug54995.phpt
@@ -0,0 +1,26 @@
+--TEST--
+Bug #54995 (Missing CURLINFO_RESPONSE_CODE support)
+--SKIPIF--
+<?php
+include 'skipif.inc';
+
+if ($curl_version['version_number'] > 0x070a08) {
+ exit("skip: tests works a versions of curl >= 7.10.8");
+}
+?>
+--FILE--
+<?php
+include 'server.inc';
+$host = curl_cli_server_start();
+$ch = curl_init();
+curl_setopt($ch, CURLOPT_URL, "{$host}/get.php");
+curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+
+var_dump(curl_getinfo($ch, CURLINFO_HTTP_CODE) == curl_getinfo($ch, CURLINFO_RESPONSE_CODE));
+
+curl_exec($ch);
+curl_close($ch);
+
+?>
+--EXPECTF--
+bool(true)