Bug #16057: ftp_nlist() and ftp_rawlist() return nothing
| From: | ryan at wonko dot com | Date: | Thu, 14 Mar 2002 07:23:50 +0000 |
| Subject: | Bug #16057: ftp_nlist() and ftp_rawlist() return nothing | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-2451@lists.php.net to get a copy of this message | ||
From: ryan@wonko.com
Operating system: Windows 2000 Advanced Server
PHP version: 4.1.1
PHP Bug Type: FTP related
Bug description: ftp_nlist() and ftp_rawlist() return nothing
In the Windows build of PHP 4.1.1, the ftp_nlist() and ftp_rawlist()
functions return absolutely nothing. The following script works just fine
in PHP 4.1.1 on Linux, but fails under Windows, no matter what FTP server
you try to connect to:
<?php
$conn = ftp_connect("ftp.kernel.org");
ftp_login($conn, "anonymous", "anon@anon.com");
$nlist = ftp_nlist($conn, "");
$rawlist = ftp_rawlist($conn, "");
echo "<pre>";
print_r($nlist);
print_r($rawlist);
echo "</pre>";
?>
--
Edit bug report at http://bugs.php.net/?id=16057&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16057&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16057&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16057&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16057&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16057&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16057&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16057&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16057&r=submittedtwice