diff options
author | Nuno Lopes <nlopess@php.net> | 2006-09-14 16:58:52 +0000 |
---|---|---|
committer | Nuno Lopes <nlopess@php.net> | 2006-09-14 16:58:52 +0000 |
commit | 4a162b71a22107fea2e5894ef475e89d18d020ef (patch) | |
tree | 166228c4fbf768edc0b7ea51c35d501f1dcdfe97 /tests/run-test | |
parent | 7a5306598aa3f4ae4c5cc803a035702fb23f8e3f (diff) | |
download | php-git-4a162b71a22107fea2e5894ef475e89d18d020ef.tar.gz |
add --STDIN-- support
Diffstat (limited to 'tests/run-test')
-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) "" |