php-src/tests/run-test/test010.phpt
Kalle Sommer Nielsen 5e9036a2a1 Another CRLF test fix
2015-03-26 03:18:42 +01:00

18 lines
350 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
--EXPECTF--
string(5%d) "fooBar
use this to input some thing to the php script
"
string(0) ""
string(0) ""