summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNuno Lopes <nlopess@php.net>2006-09-14 16:58:52 +0000
committerNuno Lopes <nlopess@php.net>2006-09-14 16:58:52 +0000
commit4a162b71a22107fea2e5894ef475e89d18d020ef (patch)
tree166228c4fbf768edc0b7ea51c35d501f1dcdfe97 /tests
parent7a5306598aa3f4ae4c5cc803a035702fb23f8e3f (diff)
downloadphp-git-4a162b71a22107fea2e5894ef475e89d18d020ef.tar.gz
add --STDIN-- support
Diffstat (limited to 'tests')
-rw-r--r--tests/run-test/test010.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/run-test/test010.phpt b/tests/run-test/test010.phpt
new file mode 100644
index 0000000000..cc3ca3591e
--- /dev/null
+++ b/tests/run-test/test010.phpt
@@ -0,0 +1,17 @@
+--TEST--
+STDIN input
+--FILE--
+<?php
+var_dump(stream_get_contents(STDIN));
+var_dump(stream_get_contents(fopen('php://stdin', 'r')));
+var_dump(file_get_contents('php://stdin'));
+?>
+--STDIN--
+fooBar
+use this to input some thing to the php script
+--EXPECT--
+string(54) "fooBar
+use this to input some thing to the php script
+"
+string(0) ""
+string(0) ""