ID: 8874 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: FTP related Operating System: Windows 2000 Advanced Server PHP Version: 4.0.4 New Comment:
This bug *is* present in 4.1.1 and 4.1.2, and I've confirmed it personally. This issue needs to be re-opened. I've submitted another bug report about it (http://bugs.php.net/bug.php?id=16057) but it doesn't seem to be getting any attention. This is a *major* blocker for Win32 developers. Here's a short test script that works fine on UNIX builds but fails on Windows: <?php $conn = ftp_connect("ftp.kernel.org"); ftp_login($conn, "anonymous", "[EMAIL PROTECTED]"); $nlist = ftp_nlist($conn, ""); $rawlist = ftp_rawlist($conn, ""); echo "<pre>"; print_r($nlist); print_r($rawlist); echo "</pre>"; ?> Previous Comments: ------------------------------------------------------------------------ [2001-08-16 18:37:20] [EMAIL PROTECTED] I must be blind. :) The ftp server information was in the first comment of yours: wu-2.6.1 I installed this same ftp server to my machine and tried with this script: <?php $conn_id = ftp_connect("localhost"); $login_result = ftp_login($conn_id, "username", "pass"); $rawlist = ftp_rawlist($conn_id,"*.gz"); $nlist = ftp_nlist($conn_id,"*.gz"); ftp_quit($conn_id); print_r($rawlist); print_r($nlist); ?> And this worked just fine. So closed. Reopen if you can reproduce this some time. --Jani ------------------------------------------------------------------------ [2001-08-16 00:26:06] [EMAIL PROTECTED] Per my previous message, I no longer have access to the FreeBSD server to try it. ------------------------------------------------------------------------ [2001-08-15 02:07:31] [EMAIL PROTECTED] This bug report was for PHP 4.0.4. There have been a few changes since that in PHP 4.0.6. Have you tried with it? And also, these functions do work on most ftp servers. What was the version of the ftp server on which this didn't work? --Jani ------------------------------------------------------------------------ [2001-08-14 21:07:00] [EMAIL PROTECTED] $aFiles = Array( "Oct100.log.gz", "Nov100.log.gz"); // $aFiles = ftp_rawlist (nFTP, "/mnt/web/guide/accumeddata/logs/*.gz"); $aFiles = ftp_nlist ( $nFTP, "*.gz"); echo "count(aFiles)=" . count ($aFiles ) . "<BR>"; ------------------------------------------------------------------------ [2001-08-14 20:10:30] [EMAIL PROTECTED] can you provide a smaller script that produces the bug please. preferably less than ten lines of code which requires nothing other than the bare min.. IE no extenal files etc. ------------------------------------------------------------------------ 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/8874 -- Edit this bug report at http://bugs.php.net/?id=8874&edit=1