#32883 [Opn->Fbk]: Last character truncated from each line of post-moved file
| From: | sniper@php.net | Date: | Fri, 29 Apr 2005 07:44:26 +0000 |
| Subject: | #32883 [Opn->Fbk]: Last character truncated from each line of post-moved file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-78424@lists.php.net to get a copy of this message | ||
ID: 32883
Updated by: sniper@php.net
Reported By: jack at martinelli dot org
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: Linux (Debian)
PHP Version: 4.3.10
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-04-29 05:25:59] jack at martinelli dot org
Description:
------------
On Windows upload a text file, e.g.,
123
456
789
Then on the server move the uploaded file to some directory then dump
the file & its:
12
45
78
Reproduce code:
---------------
move_uploaded_file( $_FILES[$filename],['tmp_name'], 'tmp/tmp.txt');
echo file_get_contents ('tmp/tmp.txt');
Expected result:
----------------
123
456
789
Actual result:
--------------
12
45
78
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32883&edit=1