php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40062 ftp_nlist() and ftp_rawlist() returns false in PHP 5.2.0
Submitted: 2007-01-08 12:34 UTC Modified: 2007-01-17 01:00 UTC
Votes:6
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:1 (25.0%)
From: dzoukr at dzoukr dot cz Assigned:
Status: No Feedback Package: FTP related
PHP Version: 5.2.0 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
37 + 17 = ?
Subscribe to this entry?

 
 [2007-01-08 12:34 UTC] dzoukr at dzoukr dot cz
Description:
------------
It seems, that ftp functions ftp_nlist() and ftp_rawlist() does not work correctly in PHP version 5.2.0. They returns false all the time, althought working directory is correct and directory is not empty.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-09 18:20 UTC] nlopess@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

it works here. Please try the snapshot. if it doesn't work, you need to give us the hostname you are connecting to (as it might be some server specific issue).
 [2007-01-17 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2007-11-05 18:07 UTC] sales at excavargoo dot com
November 5, 2007

I have the same problem.

I tried moving a working PHP program using FTP from one "client" server (let's call it A) to another (lets call it B).  The same "server" server (lets call it C) is in place.  When it gets to ftp_nlist (and I tried ftp_rawlist) nothing is returned.

So, A using ftp_nlist returns a list of files from C.  
B using using ftp_nlist returns false (and no file list is returned).

Any suggestions to try?  I really don't want to part with my password to give you a live demo.  I'll try any code you provide.
 [2007-11-05 18:48 UTC] sales at excavargoo dot com
My last version was confusing even to me.
-----------------------------------------
November 5, 2007

I have the same problem.

I have a PHP program that uses FTP functions internally.  I installed the program on two separate servers (A & B).  The program acts as a client application. 

The server (C) contains the directory of files I want to move to A & B periodically.

The operation between A and C is successful.  The ftp_nlist statement works fine.  It provides a list of files.

The operation between B and C fails.  When it gets to ftp_nlist (and I tried ftp_rawlist) no file list is returned.  A false status is returned.

Any suggestions to try?  I really don't want to part with my password to give you a live demo.  I'll try any code you provide.
 [2008-11-24 03:24 UTC] shaun at starmultimedia dot biz
I had this problem too, but then discovered that a call to ftp_pasv($ftpConn, true) is required before calling ftp_nlist() or similar.  HTH
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 02:01:29 2024 UTC