Bug #13913 Updated: Empty strings on "nlist" and "rawlist"
| From: | pjank at I-HATE-SPAM dot home dot pl | Date: | Sun, 07 Apr 2002 17:59:37 +0000 |
| Subject: | Bug #13913 Updated: Empty strings on "nlist" and "rawlist" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-4278@lists.php.net to get a copy of this message | ||
ID: 13913
Updated by: pjank@I-HATE-SPAM.home.pl
Reported By: phpbug@osiris.xs4all.nl
Status: Open
Bug Type: FTP related
Operating System: Windows XP final
PHP Version: 4.0.6
New Comment:
I found out this problem after changing to ISAPI. Before, when using
CGI it worked OK. I checked it twice - there's sth wrong with ISAPI
version of PHP 4.1.1
Does anyone know a solution - except using CGI or another server (like
Apache) ?
Previous Comments:
------------------------------------------------------------------------
[2002-04-04 01:18:57] garth@utmail.to
Best I can tell from playing with the sample code
given and the PHP FTP client ( http://wonko.com/notftp/ )
this issue does not affect Windows 2000 running Apache w/
PHP installed as a module.
I can see directory listings and pull down files no
problem.
The problem may be specific to the ISAPI (or CGI) build of
PHP (I didn't see which was being used here).
A user might try the CGI version w/ IIS to see if that works....
-Garth
------------------------------------------------------------------------
[2002-03-12 20:09:14] ryan@wonko.com
I'm seeing this exact same bug using PHP 4.1.1 on Windows 2000 Advanced
Server with IIS 5.0. This is a major showstopper for me -- I *really*
need FTP functionality, and now I'm screwed.
------------------------------------------------------------------------
[2002-03-01 03:58:26] joursain@navegalia.com
I have been trying the same with Windows 2000 Server IIS 5.0 and the
result is the same, an empty array, i can not make a for(){} or
foreach(){} or something similar because the matrix is always empty,
the passive mode doesn´t change anything.
All ftp functions works correctly except ftp_nlist() and ftp_rawlist()
why?
I hope something can help me please.Thx.
------------------------------------------------------------------------
[2001-11-08 15:17:29] phpbug@osiris.xs4all.nl
Update:
I just validated my FTP's logs and found out that:
- The user logs in correctly
- The passive request arrived and was set correctly
- There was no list command anywhere to be found
It's just not arriving.. (?)
------------------------------------------------------------------------
[2001-11-08 02:13:45] phpbug@osiris.xs4all.nl
After adding the following code after the connection and before the
listings,
// Initiate passive mode
if (ftp_pasv($conn_id, true))
{ echo "Initiated passive mode"; }
else { echo "Could not initiated passive mode"; }
The result stays the exact same..
What i forgot to mention: i can switch directorys etc. so
the connection seems to work, but the "LIST" command never reaches the
ftp server (checked).
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/13913
--
Edit this bug report at http://bugs.php.net/?id=13913&edit=1