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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Thu Dec 12 17:01:31 2024 UTC