#18937 [NEW]: Still exists: ftp_rawlist() returns empty array for dirs containing spaces
| From: | fbeyer at clickhand dot de | Date: | Fri, 16 Aug 2002 10:34:58 +0000 |
| Subject: | #18937 [NEW]: Still exists: ftp_rawlist() returns empty array for dirs containing spaces | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-16996@lists.php.net to get a copy of this message | ||
From: fbeyer@clickhand.de
Operating system: Windows XP
PHP version: 4.2.2
PHP Bug Type: FTP related
Bug description: Still exists: ftp_rawlist() returns empty array for dirs containing spaces
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 bug report at http://bugs.php.net/?id=18937&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=18937&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=18937&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18937&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18937&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18937&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18937&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18937&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18937&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18937&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18937&r=globals