mirror of
https://github.com/php/php-src.git
synced 2024-10-20 16:02:44 +00:00
18 lines
348 B
Plaintext
18 lines
348 B
Plaintext
|
--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) ""
|