#47636 [Opn->Bgs]: Warning: ftp_put(....): failed to open stream "File too large"

From: Date: Fri, 13 Mar 2009 13:27:37 +0000
Subject: #47636 [Opn->Bgs]: Warning: ftp_put(....): failed to open stream "File too large"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-134666@lists.php.net to get a copy of this message
ID: 47636 Updated by: jani@php.net 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

« previous php.bugs (#134666) next »