ID:               47636
 Updated by:       [email protected]
 Reported By:      password12345 at inwind dot it
-Status:           Open
+Status:           Bogus
 Bug Type:         FTP related
 Operating System: Debian
 PHP Version:      5.2.9
 New Comment:

Obviously the target FS can not handle files that large. That's not a 
PHP bug.


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

[2009-03-12 16:24:54] password12345 at inwind dot it

Description:
------------
The file size is 2G.

Reproduce code:
---------------
$t=ftp_connect($ftp_server);

Echo "Logging...\n";
$ft=ftp_login($t,$ftp_user,$ftp_pass);
if (( !$t) || (!$ft)) {
  echo "La connessione FTP รจ fallita a $ftp_server per l'utente
$ftp_user\n";
  die;
} else
  echo "Connesso a $ftp_server con utente $ftp_user\n";

ftp_chdir($t,"/$pathremote/bk".$act);
echo "/$pathremote/bk".$act."\n";
ftp_mkdir($t,"$name");
ftp_chdir($t,"$name");
if ($dir = @opendir("../ftp")) {
  echo "Transfer $dir\n";
  while ( ($file=readdir($dir))!==false ) {
    if (!is_file("$path/$file") ) continue;
    $trans++;
    if (!ftp_put($t,$file,"$path/$file",FTP_BINARY))
      echo "\nErrore put ftp file: $path/$file to
/$pathremote/bk$act/$name/\n\n";
//    die("\nErrore ftp!\n\n");
    else {
        echo "Puting file: $path/$file to
/$pathremote/bk$act/$name/\n";
        exec("rm -f $path/$file");
    }
  }
  closedir($dir);
}





------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47636&edit=1

Reply via email to