#26113 [Opn->Csd]: ftp_get on non-existen file creates a o byte file
| From: | iliaa@php.net | Date: | Tue, 04 Nov 2003 20:55:49 +0000 |
| Subject: | #26113 [Opn->Csd]: ftp_get on non-existen file creates a o byte file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-49984@lists.php.net to get a copy of this message | ||
ID: 26113
Updated by: iliaa@php.net
Reported By: jcastro at elnuevodia dot com
-Status: Open
+Status: Closed
Bug Type: FTP related
Operating System: windows xp
PHP Version: 4.3.3
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2003-11-04 09:02:41] jcastro at elnuevodia dot com
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 this bug report at http://bugs.php.net/?id=26113&edit=1