summaryrefslogtreecommitdiff
path: root/tests/run-test/test010.phpt
blob: cc3ca3591ec5aed0beae990daee5065e7d0086eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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) ""