Bug #16254 Updated: ftp_rawlist limit at 997 entries for large directories

From: Date: Mon, 25 Mar 2002 13:17:42 +0000
Subject: Bug #16254 Updated: ftp_rawlist limit at 997 entries for large directories
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-3285@lists.php.net to get a copy of this message
ID: 16254 Updated by: rrouanet@dialoca.com Reported By: rrouanet@dialoca.com -Status: Feedback +Status: Closed Bug Type: FTP related Operating System: Linux 2.2.16-22smp PHP Version: 4.0.6-7 New Comment: You're right Derick, the problem came from my FTP server. Sorry for this. Thanks. Regis Previous Comments: ------------------------------------------------------------------------ [2002-03-25 07:57:40] derick@php.net The code has no such limitation... might be your FTP server. Can you try other FTP servers? Derick ------------------------------------------------------------------------ [2002-03-25 05:38:42] rrouanet@dialoca.com Exact version of PHP I use ------------------------------------------------------------------------ [2002-03-25 05:31:58] rrouanet@dialoca.com ftp_rawlist return a list of 997 files when executed on a directory containing more than 2000 files (More than 997 files should be enough to reproduce the bug), IF the directory argument specifies a type of files to list like *.wav Here is a sample script to reproduce this: <? /*******************************************************/ $conn_id = ftp_connect( "ftpserver" ); $login_result = @ftp_login($conn_id, "user", "password"); $dir = "/test/*.wav"; $list = ftp_rawlist($conn_id, $dir); if ($login_result) { $length = count( $list ); echo "${length} files in the directory ${dir}<br><br>"; for( $i = 0; $i < $length; $i++ ) { echo "${list[ ${i} ]}<br>"; } ftp_quit($conn_id); } /********************************************************/ ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16254&edit=1

« previous php.bugs (#3285) next »