#18937 [Bgs]: Still exists: ftp_rawlist() returns empty array for dirs containing spaces

From: Date: Fri, 16 Aug 2002 13:48:56 +0000
Subject: #18937 [Bgs]: Still exists: ftp_rawlist() returns empty array for dirs containing spaces
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17010@lists.php.net to get a copy of this message
ID: 18937 Updated by: kalowsky@php.net Reported By: fbeyer@clickhand.de Status: Bogus Bug Type: FTP related Operating System: Windows XP PHP Version: 4.2.2 New Comment: Dup of 16057 Previous Comments: ------------------------------------------------------------------------ [2002-08-16 06:51:57] sesser@php.net Your bug report is a) duplicate and b) bogus. Next time read the other bug reports. This bug is fixed in CVS! You need the latest snapshot. This bug is not fixed in the Security Release 4.2.2. ------------------------------------------------------------------------ [2002-08-16 06:34:57] fbeyer@clickhand.de This bug was already reported and closed, but the problem is not solved yet. I am using the Windows binary of PHP 4.2.2 as an apache module with Windows XP Professional and Apache 1.3.20. If a directory in a FTP server contains spaces, ftp_rawlist() returns an empty array. ftp_nlist() works as expected. I had a directory structure similar to this one: / my dir otherdir I tried this: ftp_rawlist($stream, '/my dir'); and it returnes an empty array (count() = 0). ftp_nlist($stream, '/my dir'); returned an Array containing '.', '..' and 'otherdir' - exactly as expected. I used the workaround to first use ftp_chdir(): ftp_chdir($stream, '/my dir'); ftp_rawlist($stream, '.'); ftp_chdir($stream, '/'); That worked. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18937&edit=1

« previous php.bugs (#17010) next »