diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/run-test/test010.phpt | 17 |
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) "" |