#18803 [NEW]: FTP function ftp_rawlist takes very long in some cases

From: Date: Thu, 08 Aug 2002 13:36:01 +0000
Subject: #18803 [NEW]: FTP function ftp_rawlist takes very long in some cases
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16269@lists.php.net to get a copy of this message
From: dennisre@gmx.de Operating system: red hat 7.1 PHP version: 4.2.2 PHP Bug Type: FTP related Bug description: FTP function ftp_rawlist takes very long in some cases My scripts contains this code. It should copy the $filename file to the $dest file on the FTP server, and then get a raw list of files in the current directory. $filename = ""; $dest = ""; $server = ""; $user = ""; $password = ""; $ftp = @ftp_connect($server); @ftp_login($ftp, $user, $password); $tmpfile = tempnam("/tmp", "ftp"); @ftp_get($ftp, $tmpfile, $filename, FTP_BINARY); @ftp_put($ftp, $dest, $tmpfile, FTP_BINARY); @unlink($tmpfile); $list = @ftp_rawlist($ftp, "."); @ftp_close($ftp); When this script is executed, it takes about 5 minutes and the ftp_rawlist() function returns an empty list. It should be completed in less then one second (FTP server was local when I tested). Also the return rawlist should not be empty. -- Edit bug report at http://bugs.php.net/?id=18803&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18803&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18803&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18803&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18803&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18803&r=support Expected behavior: http://bugs.php.net/fix.php?id=18803&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18803&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18803&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18803&r=globals

« previous php.bugs (#16269) next »