|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47636 Warning: ftp_put(....): failed to open stream "File too large"
Submitted: 2009-03-12 16:24 UTC Modified: 2009-03-13 13:27 UTC
From: password12345 at inwind dot it Assigned:
Status: Not a bug Package: FTP related
PHP Version: 5.2.9 OS: Debian
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: password12345 at inwind dot it
New email:
PHP Version: OS:


 [2009-03-12 16:24 UTC] password12345 at inwind dot it
The file size is 2G.

Reproduce code:

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

echo "/$pathremote/bk".$act."\n";
if ($dir = @opendir("../ftp")) {
  echo "Transfer $dir\n";
  while ( ($file=readdir($dir))!==false ) {
    if (!is_file("$path/$file") ) continue;
    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");


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-13 13:27 UTC]
Obviously the target FS can not handle files that large. That's not a 
PHP bug.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu May 19 19:04:05 2022 UTC