From:             [EMAIL PROTECTED]
Operating system: Linux 2.2.16-22smp
PHP version:      4.0.6
PHP Bug Type:     FTP related
Bug description:  ftp_rawlist limit at 997 entries for large directories

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 bug report at http://bugs.php.net/?id=16254&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16254&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16254&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16254&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16254&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16254&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16254&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16254&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16254&r=submittedtwice

Reply via email to