svn: /phpdoc/en/trunk/ language/wrappers/ssh2.xml reference/ssh2/functions/ssh2-auth-agent.xml reference/ssh2/setup.xml

From: Date: Sun, 11 Nov 2012 19:22:21 +0000
Subject: svn: /phpdoc/en/trunk/ language/wrappers/ssh2.xml reference/ssh2/functions/ssh2-auth-agent.xml reference/ssh2/setup.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-10681@lists.php.net to get a copy of this message
kalle Sun, 11 Nov 2012 19:22:21 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=328308 Log: Minor markup fixes to r328306, including WS in ssh2_auth_agent() (should probably have used svn:prop, but hey!) Changed paths: U phpdoc/en/trunk/language/wrappers/ssh2.xml U phpdoc/en/trunk/reference/ssh2/functions/ssh2-auth-agent.xml U phpdoc/en/trunk/reference/ssh2/setup.xml Modified: phpdoc/en/trunk/language/wrappers/ssh2.xml =================================================================== --- phpdoc/en/trunk/language/wrappers/ssh2.xml 2012-11-11 16:29:51 UTC (rev 328307) +++ phpdoc/en/trunk/language/wrappers/ssh2.xml 2012-11-11 19:22:21 UTC (rev 328308) @@ -247,11 +247,11 @@ </programlisting> </example> <example> - <title>This $session variable must be kept available!</title> + <title>This <varname>$session</varname> variable must be kept available!</title> <simpara> In order to use the <filename>ssh2.*://$session</filename> wrappers you must - keep the $session resouce variable. The code below will not have the desired - effect: + keep the <varname>$session</varname> resouce variable. The code below will not + have the desired effect: </simpara> <programlisting role="php"> <![CDATA[ @@ -266,9 +266,10 @@ ]]> </programlisting> <simpara> - unset() closes the session, because $connection_string does not hold a reference - to the $session variable, just a string cast derived from it. This also happens - when the unset() is implicit because of leaving scope (like in a function). + unset() closes the session, because <varname>$connection_string</varname> does not + hold a reference to the <varname>$session</varname> variable, just a string cast + derived from it. This also happens when the <function>unset</function> is implicit + because of leaving scope (like in a function). </simpara> </example> Modified: phpdoc/en/trunk/reference/ssh2/functions/ssh2-auth-agent.xml =================================================================== --- phpdoc/en/trunk/reference/ssh2/functions/ssh2-auth-agent.xml 2012-11-11 16:29:51 UTC (rev 328307) +++ phpdoc/en/trunk/reference/ssh2/functions/ssh2-auth-agent.xml 2012-11-11 19:22:21 UTC (rev 328308) @@ -1,102 +1,102 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 315005 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.ssh2-auth-agent"> - <refnamediv> - <refname>ssh2_auth_agent</refname> - <refpurpose>Authenticate over SSH using the ssh agent</refpurpose> - </refnamediv> - - <refsect1 role="description"> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>ssh2_auth_agent</methodname> - <methodparam><type>resource</type><parameter>session</parameter></methodparam> - <methodparam><type>string</type><parameter>username</parameter></methodparam> - </methodsynopsis> - <para> - Authenticate over SSH using the ssh agent - </para> - <note> - <simpara> - The ssh2_auth_agent() function will only be available when the ssh2 extension - is compiled with libssh >= 1.2.3 - </simpara> - </note> - </refsect1> - - <refsect1 role="parameters"> - &reftitle.parameters; - <para> - <variablelist> - <varlistentry> - <term><parameter>session</parameter></term> - <listitem> - <para> - An SSH connection link identifier, obtained from a call to - <function>ssh2_connect</function>. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><parameter>username</parameter></term> - <listitem> - <para> - Remote user name. - </para> - </listitem> - </varlistentry> - </variablelist> - </para> - </refsect1> - - <refsect1 role="returnvalues"> - &reftitle.returnvalues; - <para> - &return.success; - </para> - </refsect1> - - <refsect1 role="examples"> - &reftitle.examples; - <para> - <example> - <title>Authenticating with a ssh agent</title> - <programlisting role="php"> -<![CDATA[ -<?php -$connection = ssh2_connect('shell.example.com', 22); - -if (ssh2_auth_agent($connection, 'username')) { - echo "Authentication Successful!\n"; -} else { - die('Authentication Failed...'); -} -?> -]]> - </programlisting> - </example> - </para> - </refsect1> - -</refentry> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"~/.phpdoc/manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> +<?xml version="1.0" encoding="UTF-8"?> +<!-- $Revision: 315005 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.ssh2-auth-agent"> + <refnamediv> + <refname>ssh2_auth_agent</refname> + <refpurpose>Authenticate over SSH using the ssh agent</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>ssh2_auth_agent</methodname> + <methodparam><type>resource</type><parameter>session</parameter></methodparam> + <methodparam><type>string</type><parameter>username</parameter></methodparam> + </methodsynopsis> + <para> + Authenticate over SSH using the ssh agent + </para> + <note> + <simpara> + The <function>ssh2_auth_agent</function> function will only be available + when the ssh2 extension is compiled with libssh >= 1.2.3. + </simpara> + </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>session</parameter></term> + <listitem> + <para> + An SSH connection link identifier, obtained from a call to + <function>ssh2_connect</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>username</parameter></term> + <listitem> + <para> + Remote user name. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Authenticating with a ssh agent</title> + <programlisting role="php"> +<![CDATA[ +<?php +$connection = ssh2_connect('shell.example.com', 22); + +if (ssh2_auth_agent($connection, 'username')) { + echo "Authentication Successful!\n"; +} else { + die('Authentication Failed...'); +} +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + +</refentry> + +<!-- Keep this comment at the end of the file +Local variables: +mode: sgml +sgml-omittag:t +sgml-shorttag:t +sgml-minimize-attributes:nil +sgml-always-quote-attributes:t +sgml-indent-step:1 +sgml-indent-data:t +indent-tabs-mode:nil +sgml-parent-document:nil +sgml-default-dtd-file:"~/.phpdoc/manual.ced" +sgml-exposed-tags:nil +sgml-local-catalogs:nil +sgml-local-ecat-files:nil +End: +vim600: syn=xml fen fdm=syntax fdl=2 si +vim: et tw=78 syn=sgml +vi: ts=1 sw=1 +--> Modified: phpdoc/en/trunk/reference/ssh2/setup.xml =================================================================== --- phpdoc/en/trunk/reference/ssh2/setup.xml 2012-11-11 16:29:51 UTC (rev 328307) +++ phpdoc/en/trunk/reference/ssh2/setup.xml 2012-11-11 19:22:21 UTC (rev 328308) @@ -20,12 +20,12 @@ versions (see the release notes). </para> <para> - The ssh2_auth_agent() function will only be available with - libssh >= 1.2.3 + The <function>ssh2_auth_agent</function> function will only be available + with libssh >= 1.2.3. </para> <para> - support for stream_set_timeout() to channel streams will only - be available with libssh >= 1.2.9 + support for <function>stream_set_timeout</function> to channel streams + will only be available with libssh >= 1.2.9. </para> <para> Libssh2 comes in two flavours: gcrypt or openssl. Some linux

« previous php.doc.cvs (#10681) next »