|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-04-28 20:28 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 20:00:01 2025 UTC |
Description: ------------ When loading a file with file_get_contents theres an \n appended to the content. Reproduce code: --------------- echo "foo" > file.txt php -r 'var_dump(file_get_contents("file.txt"));' Expected result: ---------------- string(3) "foo" Actual result: -------------- string(4) "foo "