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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
35 + 33 = ?
Subscribe to this entry?

 
 [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: Sat Apr 20 00:01:27 2024 UTC