php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #26489 slightly misleading advice in the documentation of file()
Submitted: 2003-12-01 13:03 UTC Modified: 2003-12-01 13:11 UTC
From: messju at lammfellpuschen dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2003-12-01 13:03 UTC] messju at lammfellpuschen dot de
Description:
------------
it's really just a very little thing: 
 
the first note on http://php.dpnet/manual/en/
function.file.php says: 
 
"Note: Each line in the resulting array will include the 
line ending, so you still need to use trim() if you do not 
want the line ending present." 
 
of course rtrim() should be used to only get rid the line 
endings not trim(). 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-01 13:11 UTC] didou@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.
 [2020-02-07 06:12 UTC] phpdocbot@php.net
Automatic comment on behalf of didou
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=c9adc6afa112f6a4328d31f4d4b6cfa3b9191350
Log: fix #26489
 [2020-12-30 12:50 UTC] nikic@php.net
Automatic comment on behalf of didou
Revision: http://git.php.net/?p=doc/fr.git;a=commit;h=bbdab9706f0a4b99c64e6fdd47c809706624fe62
Log: fix #26489
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Nov 23 21:00:01 2025 UTC