searching for files that have a blank line at the end |
|
Stop closing your pure PHP files with the closing php tag ?> in the first place. I had the same issue, caused by an earlier version of phped. The IDE was puting spaces at the end of some php files just by opening them and caused errors in the applications. The only thing that worked, was to stop closing with ?>. I spent quite a while until I found the culprit.
It is perfectly valid. You could search for files, and use regular expressions like: \?>\s+$ or something. |
||||||||||||
|
Veteran
|
Thanks for the response. I am 99.9% sure it was PHPed that did this to several of my files as this project has been fine for years, then all of a sudden i open it up in phpED V8 and it breaks.
It was probably done during a replace in files, or a "rename variable". The 2 functions of any editor that i simply do not trust!! How can you terminate a php inc or class file without ?> ? |
||||||||||||
|
|
Yeah, that's why I do not use these functions (along with many other functions that cause crashes or instability or are just buggy), I just have no trust in them. Well, replace in files is useful, and when needed, I use more trusted applications to do that.
I see... newer versions still suffer from this bug. I've created a thread in the past about this if I remember correctly. Maybe it's too hard to reproduce and fix. You can leave off the termination ?> from php files. It's written somewhere in the docs too. The PHP engine swtiches automatically out of PHP mode when quitting the file. If your file is entirely PHP, do not terminate them with ?> and you're ok. Then the IDE can add as many spaces as it wants with no adverse effects . |
||||||||||||
|
Veteran
|
It's 100% the refactor function. Im using V8 Build 8033 (latest version avaliable).
I refactored a method name that was in 2 files. Both files had a blank line at the end. This is a serious error and needs fixing asap. |
||||||||||||
|
Site Admin
|
Maybe it's just too hard... but sorry, this is not a correct place for reporting bugs. |
||||||||||||||||
_________________ The PHP IDE team |
searching for files that have a blank line at the end |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by