php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5026 ftp_size and transfer mode
Submitted: 2000-06-14 11:40 UTC Modified: 2001-07-21 21:26 UTC
From: spt at dycon dot com Assigned:
Status: Closed Package: FTP related
PHP Version: 4.0 OS: Linux 2.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: spt at dycon dot com
New email:
PHP Version: OS:

 

 [2000-06-14 11:40 UTC] spt at dycon dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-10 14:20 UTC] jimw@php.net
refiled as bug against 4.0.
 [2001-07-21 21:26 UTC] andy@php.net
This is an old bug and needs to be closed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 00:01:29 2024 UTC