php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14331 Fatal whitespace at the end of the file.
Submitted: 2001-12-03 17:46 UTC Modified: 2001-12-03 18:10 UTC
From: mcoughlan at gothambroadband dot com Assigned:
Status: Not a bug Package: Performance problem
PHP Version: 4.0.6 OS: Debian Linux
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 !
Your email address:
MUST BE VALID
Solve the problem:
50 + 20 = ?
Subscribe to this entry?

 
 [2001-12-03 17:46 UTC] mcoughlan at gothambroadband dot com
I am not a PHP programmer, but rather have installed the HORDE PHP project.  I often need to edit .php config files files.  It is easy to do, and Horde works well, however sometimes emacs will add whitespace at the end of a php file if I scroll too far. These often cause fatal errors like:

Warning: Cannot add header information - headers already sent by (output started at /usr/share/horde/turba/config/sources.php:73) in /usr/share/horde/turba/addobjectaction.php on line 35

Is it possible to simply trim () all php files before processing? These whitespace errors are too darn hard to catch, and many people need to look at php files, without necessarlily programming. 

Thanks for your time!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-03 18:10 UTC] mfischer@php.net
Er, really, fix your editor, its broken.

Even if you can't imagine, there are certain cases where one wants whitespaces

Bogus.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Dec 13 07:01:24 2019 UTC