kumarsivarajan / mollify

Automatically exported from code.google.com/p/mollify
0 stars 0 forks source link

Ending php file "?>" corrupt files download and view (images) #519

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
With a fresh installation of 2.5.1 (2.5 as well), images were corrupted on 
download, view ...

With an hexa editor, we see that a space was added in start of the generated 
files (in all files, but this only corrupt images).

In fact, a space is flushed in output buffer before file recuperation.
This is caused by space or line after "?>" at the end of php files.

To solve this problem, remove all "?>" at the end of php files.
It is a syntax convention :
See : http://php.net/manual/en/language.basic-syntax.phptags.php

Original issue reported on code.google.com by jeremiec...@gmail.com on 27 Feb 2014 at 2:02

GoogleCodeExporter commented 8 years ago
The problem is not in the files inside package, but the one you have created 
yourself: configuration.php. Just make sure it's clean (no chars before or 
after closing php tags).

Sure it is possible (or even preferred) to omit the closing tag, but it's not 
the point here. It works just fine if the configuration.php is clean.

Original comment by samuli.j...@gmail.com on 27 Feb 2014 at 3:47