From: password12345 at inwind dot it
Operating system: Debian
PHP version: 5.2.9
PHP Bug Type: FTP related
Bug description: Warning: ftp_put(....): failed to open stream "File too large"
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 bug report at http://bugs.php.net/?id=47636&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47636&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47636&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47636&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47636&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=47636&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47636&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=47636&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=47636&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=47636&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=47636&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=47636&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=47636&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=47636&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47636&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47636&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47636&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=47636&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=47636&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=47636&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=47636&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=47636&r=mysqlcfg