xref: /PHP-8.2/tests/run-test/test010.phpt (revision 5e9036a2)
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--EXPECTF--
13string(5%d) "fooBar
14use this to input some thing to the php script
15"
16string(0) ""
17string(0) ""
18