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

From: Date: Sat, 10 Aug 2002 11:18:10 +0000
Subject: #18803 [Opn]: FTP function ftp_rawlist takes very long in some cases
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16426@lists.php.net to get a copy of this message
ID: 18803 Updated by: wez@php.net Reported By: dennisre@gmx.de Status: Open Bug Type: FTP related Operating System: red hat 7.1 PHP Version: 4.2.2 New Comment: If it is only a problem when using a local server, perhaps you should check your DNS settings on that machine: I suspect that your ftp server is trying to reverse map the ip address of the machine running your script and that is the cause of the delay. There are two solutions: correct the DNS configuration, or disable name resolution and reverse mapping in your ftp server configuration. Previous Comments: ------------------------------------------------------------------------ [2002-08-09 21:15:58] dennisre@gmx.de I am pretty sure that there is a problem with PHP. I was able to reproduce this on Windows 2000 if I use the local FTP server. It's the same with Red Hat 7.1. If I use the local FTP server it doesn't work, if I use an non-local FTP server it works. ------------------------------------------------------------------------ [2002-08-09 10:18:56] kalowsky@php.net I can't reproduce this and you can't seem to on other machines. I'm going to say this looks like a local user configuration issue, and not a PHP issue. ------------------------------------------------------------------------ [2002-08-09 10:14:10] dennisre@gmx.de I have tested it with an IIS 5.0 FTP Server and it seams to work. ------------------------------------------------------------------------ [2002-08-09 00:29:02] kalowsky@php.net yet again, unable to re-produce on any of my test machines. Can someone with Linux try this as well? And can you please try using a non-ProFTPd server? Just curious if it's specific to ProFTP or not. ------------------------------------------------------------------------ [2002-08-08 18:46:11] dennisre@gmx.de Also the file I used for testing is 800KB in size. It took exactly 1 min 30 (seemed to me like 5 mins) with the local proftpd server. There is no problem with small files (15KB). Also after 1 min 30, ftp_rawlist returns a list with one entry, which is an empty string. ------------------------------------------------------------------------ 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/18803 -- Edit this bug report at http://bugs.php.net/?id=18803&edit=1

« previous php.bugs (#16426) next »