Bug #5026 Updated: ftp_size and transfer mode

From: Date: Sun, 22 Jul 2001 01:26:23 +0000
Subject: Bug #5026 Updated: ftp_size and transfer mode
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-60527@lists.php.net to get a copy of this message
ID: 5026 Updated by: andy Reported By: spt@dycon.com Old Status: Open Status: Closed Bug Type: FTP related Operating System: Linux 2.2 PHP Version: 4.0 New Comment: This is an old bug and needs to be closed. Previous Comments: ------------------------------------------------------------------------ [2001-02-10 14:20:40] jimw@php.net refiled as bug against 4.0. ------------------------------------------------------------------------ [2000-06-14 11:40:27] spt@dycon.com I am using the ftp_size command to connect to a NcFTPd server. NcFTPd does not support the size command in ascii mode. Information is at : http://www.ncftpd.com/ncftpd/doc/faq/func.html#size_ascii Is there any way that this could be changed to binary mode, ie insert about line 602 of function/ftp.c the following: if (!ftp_type(ftp, FTPTYPE_IMAGE)) return -1; Or for consistancy of the API have an optional mode parameter to this function. Thanks for the newly added ftp support and thank you for your assistance. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=5026&edit=1

« previous php.dev (#60527) next »