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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jack at martinelli dot org
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 04:01:29 2024 UTC