dave Thu Jul 29 01:54:45 2004 EDT
Modified files: /phpdoc/en/reference/ftp/functions ftp-chmod.xml ftp-close.xml Log: - proto fixes. http://cvs.php.net/diff.php/phpdoc/en/reference/ftp/functions/ftp-chmod.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc/en/reference/ftp/functions/ftp-chmod.xml diff -u phpdoc/en/reference/ftp/functions/ftp-chmod.xml:1.4 phpdoc/en/reference/ftp/functions/ftp-chmod.xml:1.5 --- phpdoc/en/reference/ftp/functions/ftp-chmod.xml:1.4 Wed Jun 9 08:10:05 2004 +++ phpdoc/en/reference/ftp/functions/ftp-chmod.xml Thu Jul 29 01:54:45 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> +<!-- $Revision: 1.5 $ --> <refentry id="function.ftp-chmod"> <refnamediv> <refname>ftp_chmod</refname> @@ -8,7 +8,7 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>string</type><methodname>ftp_chmod</methodname> + <type>int</type><methodname>ftp_chmod</methodname> <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> <methodparam><type>int</type><parameter>mode</parameter></methodparam> <methodparam><type>string</type><parameter>filename</parameter></methodparam> @@ -19,6 +19,9 @@ given as an <emphasis>octal</emphasis> value. </para> <para> + Returns <parameter>mode</parameter> on success, or &false; on failure. + </para> + <para> <example> <title><function>ftp_chmod</function> example</title> <programlisting role="php"> @@ -33,7 +36,7 @@ $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); // try to chmod $file to 644 -if (ftp_chmod($conn_id, 0644, $file)) { +if (ftp_chmod($conn_id, 0644, $file) !== false) { echo "$file chmoded successfully to 644\n"; } else { echo "could not chmod $file\n"; http://cvs.php.net/diff.php/phpdoc/en/reference/ftp/functions/ftp-close.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc/en/reference/ftp/functions/ftp-close.xml diff -u phpdoc/en/reference/ftp/functions/ftp-close.xml:1.5 phpdoc/en/reference/ftp/functions/ftp-close.xml:1.6 --- phpdoc/en/reference/ftp/functions/ftp-close.xml:1.5 Fri Dec 19 09:40:54 2003 +++ phpdoc/en/reference/ftp/functions/ftp-close.xml Thu Jul 29 01:54:45 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- splitted from ./en/functions/ftp.xml, last change in rev 1.34 --> <refentry id="function.ftp-close"> <refnamediv> @@ -9,15 +9,18 @@ <refsect1> <title>Description</title> <methodsynopsis> - <type>void</type><methodname>ftp_close</methodname> + <type>bool</type><methodname>ftp_close</methodname> <methodparam><type>resource</type><parameter>ftp_stream</parameter></methodparam> </methodsynopsis> - <simpara> + <para> <function>ftp_close</function> closes <parameter>ftp_stream</parameter> and releases the <type>resource</type>. After calling this function, you can no longer use the FTP connection and must create a new one with <function>ftp_connect</function>. - </simpara> + </para> + <para> + &return.success; + </para> <para> <example> <title><function>ftp_close</function> example</title>