php.net |  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, '/');
var_dump($ls);
var_dump($rls);

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.

Manu.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-18 00:37 UTC] sniper@php.net
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?

--Jani

 [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.

Manu.
 [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.

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

 [2001-11-18 10:06 UTC] sander@php.net
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:

http://bugs.php.net/bug.php?id=16057
http://bugs.php.net/bug.php?id=8874
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 12:01:27 2024 UTC