#25296 [Asn->WFx]: error on ftp_nlist

From: Date: Tue, 02 Sep 2003 18:33:30 +0000
Subject: #25296 [Asn->WFx]: error on ftp_nlist
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-47082@lists.php.net to get a copy of this message
ID: 25296 Updated by: pollita@php.net Reported By: ates at isikun dot edu dot tr -Status: Assigned +Status: Wont fix Bug Type: FTP related Operating System: win xp PHP Version: 4.3.4-dev Assigned To: pollita New Comment: Correction: When I "reproduced" this bug, I was talking to IIS's FTP service directly using the "LIST" command (equivalent of ftp_rawlist) which does return correct data. However, using the "NLST" command (equivalent of ftp_nlist) the data returned by IIS is "/http/fopen.php\fopen.php" which is precisely what PHP turns around and provides back. This makes it Not-A-PHP-Bug, but rather a MS problem. That said I don't want to leave you in the lurch, so here's a workaround: function IISisBROKEN_ftp_nlist($res, $dir) { if (ftp_size($res, $dir) >= 0) { return $dir; } return ftp_nlist($res, $dir); } Previous Comments: ------------------------------------------------------------------------ [2003-09-02 10:02:58] pollita@php.net Agreed, this isn't a duplicate of that other bug. IIS returns \foo.txt properly, but somewhere along the line, PHP turns that into /foo.txt/foo.txt. I'll take assignment. ------------------------------------------------------------------------ [2003-09-02 03:02:29] ates at isikun dot edu dot tr there is nothing about permissions, rawlist returns "tosun.txt" but nlist return "tosun.txt/tosun.txt " if you nlist to files name it returns wrong think.. ------------------------------------------------------------------------ [2003-09-01 21:51:55] sniper@php.net See bug #25347 ------------------------------------------------------------------------ [2003-09-01 06:42:23] ates at isikun dot edu dot tr same problem continues look at url = http://webgroup.isikun.edu.tr/arge/ftp/ftp_connect.php ------------------------------------------------------------------------ [2003-08-31 16:09:38] iliaa@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ 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/25296 -- Edit this bug report at http://bugs.php.net/?id=25296&edit=1

« previous php.bugs (#47082) next »