Trailing lines are part of the answer

Would it be possible to ignore empty trailing lines when validating PHP codes?

I know this is the standard PHP behavior in production contexts, but it’s quite annoying that trailing empty lines are considered as part of the answer.

For instance, if you have more that 1 empty line after the ?> symbol, it behave as if you added several echo("\n") instructions. The result you provided is then spoiled and you may get validation errors like this one (in French):

Échec
Trouvé : Rien
Attendu : Rien

Why not to, by default, remove PHP closing tag?
This should permanently eliminate problems like above…

This indeed was my first idea.

However there are probably PHP coders using the areas out of the code to “echo” stuff, so their existing solutions would be broken.