|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-16 06:51 UTC] sesser@php.net
[2002-08-16 09:48 UTC] kalowsky@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
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.