blob: 12090346e302ab9af931445f7d65f3c81d550d03 (
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
--EXPECTF--
string(5%d) "fooBar
use this to input some thing to the php script
"
string(0) ""
string(0) ""
|