Merge branch 'master' of git.php.net:/pecl/http/pecl_http
[m6w6/ext-http] / tests / bug67932.phpt
diff --git a/tests/bug67932.phpt b/tests/bug67932.phpt
new file mode 100644 (file)
index 0000000..7ab8251
--- /dev/null
@@ -0,0 +1,18 @@
+--TEST--
+Bug #67932 (php://input always empty)
+--SKIPIF--
+<?php 
+include "skipif.inc";
+?>
+--PUT--
+Content-Type: text/xml
+
+<?xml version="1.0" encoding="utf-8" ?>
+<body>test</body>
+--FILE--
+<?php
+readfile("php://input");
+?>
+--EXPECT--
+<?xml version="1.0" encoding="utf-8" ?>
+<body>test</body>
\ No newline at end of file