|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-03-25 05:38 UTC] rrouanet at dialoca dot com
[2002-03-25 07:57 UTC] derick@php.net
[2002-03-25 08:17 UTC] rrouanet at dialoca dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 23:00:02 2025 UTC |
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); } /********************************************************/ ?>