php-src/tests/run-test/test010.phpt
Nuno Lopes 3ed3a71741 MFB
2006-09-14 17:07:41 +00:00

18 lines
348 B
PHP

--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) ""