php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25625 ftp_*list cant retrive ftp list on some ftpd
Submitted: 2003-09-22 06:22 UTC Modified: 2003-09-22 06:56 UTC
From: sentomas at hotmail dot com Assigned:
Status: Closed Package: FTP related
PHP Version: 4.3.3 OS: freebad
Private report: No CVE-ID: None
 [2003-09-22 06:22 UTC] sentomas at hotmail dot com
Description:
------------
I have found a bug on page ref.ftp.html
[chm date: 2003-09-06]...

ftp_nlist() and ftp_rawlist cant retrive ftp list on some ftpd (titan etc). These function return null array in these ftpd.

may because these ftpd return some info before the content of dir list.
here is ftp client info:
.
.
ftp> ls -la
227 Entering Passive Mode (xx,xxx,73,245,18,54).
150 File status okay; about to open data connection.
total 8
drwxrwx--- 1 owner group        512 Aug 06 10:46 .
drwxrwx--- 1 owner group        512 Aug 06 10:46 ..
.
.
drwxrwx--- 1 owner group        512 Sep 10 21:27 Temp
.
.
.
226 Closing data connection. Transferred 462 bytes.

Expected result:
----------------
null return

Actual result:
--------------
should be:

drwxrwx--- 1 owner group        512 Aug 06 10:46 .
drwxrwx--- 1 owner group        512 Aug 06 10:46 ..
.
.
drwxrwx--- 1 owner group        512 Sep 10 21:27 Temp
.
.
.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-22 06:56 UTC] sniper@php.net
On second read..I think this is actually fixed in latest stable CVS. So try the latest STABLE snapshot from http://snaps.php.net and reopen if it doesn't work.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 10:01:29 2024 UTC