From 8df32e90486c49f780493aab6a8262035a491e41 Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Fri, 14 Jan 2005 00:00:07 +0000 Subject: [PATCH] fix more examples (user notes) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@177175 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../ssh2/functions/ssh2-methods-negotiated.xml | 14 +++++++------- reference/ssh2/functions/ssh2-shell.xml | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/reference/ssh2/functions/ssh2-methods-negotiated.xml b/reference/ssh2/functions/ssh2-methods-negotiated.xml index 42f2d907a8..dcedba9754 100644 --- a/reference/ssh2/functions/ssh2-methods-negotiated.xml +++ b/reference/ssh2/functions/ssh2-methods-negotiated.xml @@ -1,5 +1,5 @@ - + @@ -32,14 +32,14 @@ echo "Server identified using an {$methods['hostkey']} with "; echo "fingerprint: " . ssh2_fingerprint($connection) . "\n"; echo "Client to Server packets will use methods:\n"; -echo "\tCrypt: {$method['client_to_server']['crypt']}\n"; -echo "\tComp: {$method['client_to_server']['comp']}\n"; -echo "\tMAC: {$method['client_to_server']['mac']}\n"; +echo "\tCrypt: {$methods['client_to_server']['crypt']}\n"; +echo "\tComp: {$methods['client_to_server']['comp']}\n"; +echo "\tMAC: {$methods['client_to_server']['mac']}\n"; echo "Server to Client packets will use methods:\n"; -echo "\tCrypt: {$method['server_to_client']['crypt']}\n"; -echo "\tComp: {$method['server_to_client']['comp']}\n"; -echo "\tMAC: {$method['server_to_client']['mac']}\n"; +echo "\tCrypt: {$methods['server_to_client']['crypt']}\n"; +echo "\tComp: {$methods['server_to_client']['comp']}\n"; +echo "\tMAC: {$methods['server_to_client']['mac']}\n"; ?> ]]> diff --git a/reference/ssh2/functions/ssh2-shell.xml b/reference/ssh2/functions/ssh2-shell.xml index 064faefc7c..b7a7e1699d 100644 --- a/reference/ssh2/functions/ssh2-shell.xml +++ b/reference/ssh2/functions/ssh2-shell.xml @@ -1,5 +1,5 @@ - + @@ -44,7 +44,7 @@ $connection = ssh2_connect('shell.example.com', 22); ssh2_auth_password($connection, 'username', 'password'); -$stream = ssh2_shell($connection, 'vt102', 80, 24, SSH2_TERM_UNIT_CHARS); +$stream = ssh2_shell($connection, 'vt102', null, 80, 24, SSH2_TERM_UNIT_CHARS); ?> ]]>