ID: 16254
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]
The code has no such limitation... might be your FTP server.
Can you try other FTP servers?
Derick
------------------------------------------------------------------------
[2002-03-25 05:38:42] [EMAIL PROTECTED]
Exact version of PHP I use
------------------------------------------------------------------------
[2002-03-25 05:31:58] [EMAIL PROTECTED]
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