ÿØÿà JFIF ÿÛ „ ( %!1!%*+...983,7(-.-
File manager
File manager - Edit - /opt/alt/tests/alt-php85-pecl-ssh2_1.4.1-1.el8/tests/ssh2_send_eof.phpt
Back
--TEST-- ssh2_send_eof() - Tests closing standard input --SKIPIF-- <?php require('ssh2_skip.inc'); ssh2t_needs_auth(); ?> --FILE-- <?php require('ssh2_test.inc'); $ssh = ssh2_connect(TEST_SSH2_HOSTNAME, TEST_SSH2_PORT); var_dump(ssh2t_auth($ssh)); $cmd=ssh2_exec($ssh, "cat\n"); var_dump($cmd); stream_set_blocking($cmd, true); $content = "foo"; fwrite($cmd, $content); fflush($cmd); ssh2_send_eof($cmd); $response = stream_get_contents($cmd); var_dump($response === $content); echo $response . PHP_EOL; --EXPECTF-- bool(true) resource(%d) of type (stream) bool(true) foo
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.29 |
proxy
|
phpinfo
|
Settings