From: jcastro at elnuevodia dot com Operating system: windows xp PHP version: 4.3.3 PHP Bug Type: FTP related Bug description: ftp_get on non-existen file creates a o byte file
Description: ------------ If I use ftp_get and the $server_file does not exist on the server, I will get a zero byte file created in my machine with the name that I put in the $local_file variable. I am running php 4.3.3 on windows xp prof Reproduce code: --------------- @ftp_get($conn_id, $local_file, $server_file, FTP_BINARY)) Expected result: ---------------- No file should be created since the server_file did not exits Actual result: -------------- a zero byte file is created -- Edit bug report at http://bugs.php.net/?id=26113&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26113&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26113&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26113&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26113&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26113&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=26113&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26113&r=support Expected behavior: http://bugs.php.net/fix.php?id=26113&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26113&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26113&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26113&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26113&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26113&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26113&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26113&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26113&r=float