From cea9297342f5363e3fe666422d3a8855c8587787 Mon Sep 17 00:00:00 2001 From: Dave Barr Date: Thu, 29 Jul 2004 05:54:45 +0000 Subject: [PATCH] - proto fixes. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@164610 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/ftp/functions/ftp-chmod.xml | 9 ++++++--- reference/ftp/functions/ftp-close.xml | 11 +++++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/reference/ftp/functions/ftp-chmod.xml b/reference/ftp/functions/ftp-chmod.xml index caea6a064f..3166fc3640 100644 --- a/reference/ftp/functions/ftp-chmod.xml +++ b/reference/ftp/functions/ftp-chmod.xml @@ -1,5 +1,5 @@ - + ftp_chmod @@ -8,7 +8,7 @@ Description - stringftp_chmod + intftp_chmod resourceftp_stream intmode stringfilename @@ -18,6 +18,9 @@ filename to mode given as an octal value. + + Returns mode on success, or &false; on failure. + <function>ftp_chmod</function> example @@ -33,7 +36,7 @@ $conn_id = ftp_connect($ftp_server); $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"; diff --git a/reference/ftp/functions/ftp-close.xml b/reference/ftp/functions/ftp-close.xml index 98e9af3c98..3ca4df12d2 100644 --- a/reference/ftp/functions/ftp-close.xml +++ b/reference/ftp/functions/ftp-close.xml @@ -1,5 +1,5 @@ - + @@ -9,15 +9,18 @@ Description - voidftp_close + boolftp_close resourceftp_stream - + ftp_close closes ftp_stream and releases the resource. After calling this function, you can no longer use the FTP connection and must create a new one with ftp_connect. - + + + &return.success; + <function>ftp_close</function> example