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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Tue Apr 16 18:01:30 2024 UTC