xref: /PHP-5.6/tests/run-test/test010.phpt (revision 4a162b71)
1--TEST--
2STDIN input
3--FILE--
4<?php
5var_dump(stream_get_contents(STDIN));
6var_dump(stream_get_contents(fopen('php://stdin', 'r')));
7var_dump(file_get_contents('php://stdin'));
8?>
9--STDIN--
10fooBar
11use this to input some thing to the php script
12--EXPECT--
13string(54) "fooBar
14use this to input some thing to the php script
15"
16string(0) ""
17string(0) ""
18