#23 trailing linefeed prevents Downloads via PHP

open
nobody
None
5
2007-08-05
2007-08-05
deepriver
No

Problem:
Due to two linefeeds at the very end of adodb.inc.php
after the ?> tag you are unable to make PHP download scripts like this:

include ("adodb.inc.php"); //here is the bug
...
header(...);
header("Content-Transfer-Encoding: binary");
header(...);

readfile(...);

the two linefeeds are always echoed to the browser before readfile could echo the file.

Fix:
remove the two linefeeds at the end of adodb.inc.php.

Discussion