add test for bug67932
authorMichael Wallner <mike@php.net>
Thu, 25 Sep 2014 13:34:56 +0000 (15:34 +0200)
committerMichael Wallner <mike@php.net>
Thu, 25 Sep 2014 13:34:56 +0000 (15:34 +0200)
package.xml
tests/bug67932.phpt [new file with mode: 0644]

index 9aa688a1c442cba525f412097aeb0fb3eb238e21..410c7496cfd314415e8d3811ed062bb54e821570 100644 (file)
@@ -135,6 +135,7 @@ v2: http://dev.iworks.at/ext-http/lcov/ext/http/
     </dir>
      <file role="test" name="bug61444.phpt"/>
      <file role="test" name="bug66388.phpt"/>
+     <file role="test" name="bug67932.phpt"/>
      <file role="test" name="client001.phpt"/>
      <file role="test" name="client002.phpt"/>
      <file role="test" name="client003.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