php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32883 Last character truncated from each line of post-moved file
Submitted: 2005-04-29 05:25 UTC Modified: 2005-05-07 01:00 UTC
From: jack at martinelli dot org Assigned:
Status: No Feedback Package: Filesystem function related
PHP Version: 4.3.10 OS: Linux (Debian)
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-04-29 05:25 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-07 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Nov 17 01:01:35 2019 UTC