ID:               16254
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         FTP related
 Operating System: Linux 2.2.16-22smp
-PHP Version:      4.0.6
+PHP Version:      4.0.6-7
 New Comment:

Exact version of PHP I use


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to