|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13720 ftp_nlist and ftp_rawlist always return false
Submitted: 2001-10-17 21:48 UTC Modified: 2001-11-18 10:06 UTC
From: manu at chasqui dot uclv dot edu dot cu Assigned:
Status: Closed Package: FTP related
PHP Version: 4.0.6 OS: Windows 2000 Advance Server
Private report: No CVE-ID: None
 [2001-10-17 21:48 UTC] manu at chasqui dot uclv dot edu dot cu
I have code like this:

$conn = ftp_connect($ftp_server);
if (!conn) exit();
if (!ftp_login($conn, 'anonymous', '')) exit();
$ls = ftp_nlist($conn, '/');
$rls = ftp_rawlist($conn, '/');

I have tested trying to connect to two different IIS 5.0 FTP servers, and always I get "bool(false)bool(false)" as output.
Into my php.ini there's nothing rare about ftp; just allow_url_fopen = On.
Before I upgrade PHP to PHP 4.0.6, I was doing some tests with FTP functions and ftp_nlist as well as ftp_rawlist worked fine.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-18 00:37 UTC]
In which version of PHP did this work?
Is PHP the only part that was updated?
Is the FTP server same with which this worked?


 [2001-10-18 11:15 UTC] manu at chasqui dot uclv dot edu dot cu
The version in which I tested it before was PHP 4.0.5
PHP was the only changed part.
Yes, I tested it with the same FTP servers.

 [2001-10-23 02:01 UTC] manu at chasqui dot uclv dot edu dot cu
I thinks is something weird: I go back to php4.0.5 and those ftp functions still working wrong. Moreover, I install php4.0.4pl1 and doesn't work either.
I'm sure that I once run that code and it did work.
I haven't modified my FTP server also.

 [2001-10-27 06:19 UTC]
What if you try with some public (anonymous) ftp servers?
Does this work then?

 [2001-11-18 10:06 UTC]
No feedback. Closing.
 [2002-03-20 19:40 UTC] ryan at wonko dot com
This *is* a valid bug that I have reproduced myself in the Windows builds of 4.1.1 and 4.1.2. For more info, see the following bug entries:
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Nov 30 09:01:25 2023 UTC