After making a mistake of upgrading to php 5.4.8 (from dotdeb), every script i run outputs weird junk at the end of the script. There are 2 threads here: one says i should disable php5filter. After doing that apache simply offers me to download scripts instead of serving them ... Another one says there's a problem with gzip. Looks like a stupid bug since it wasn't there before. And there's no explanation on how to fix it. Someone said it's caused by not adding a new line at the end of the file, but i have lots of includes, i don't even know which file should add this new line, not to mention the fact that i don't want to do this, as my editor is set to automatically strip junk like that...
Can someone please help with this issue, cause google doesn't know anything about it (or at least i don't know how to ask the question)?
UPDATE 1: doing a2dismod deflate solves the problem, but i do need this module. UPDATE 2: don't know if this is related, but after this upgrade, every page is sent with transfer-encoding: chunked, but before the upgrade there was no such header and content-encoding was set to "gzip".