From: messju at lammfellpuschen dot de Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: slightly misleading advice in the documentation of file()
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(). -- Edit bug report at http://bugs.php.net/?id=26489&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26489&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26489&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26489&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26489&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26489&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26489&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26489&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26489&r=support Expected behavior: http://bugs.php.net/fix.php?id=26489&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26489&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26489&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26489&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26489&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26489&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26489&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26489&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26489&r=float
