From: stephane at dipp dot net Operating system: FreeBSD 4.9 PHP version: 4.3.7 PHP Bug Type: Reproducible crash Bug description: space after ?> in an include_once_file prevent dowload
Description: ------------ I got a php script (class.DownloadScript.inc.php) which download a file from the web site. This script use also the function include_once. If there is a space after the ?> at the end of the included file (class.IncludedScript.inc.php), I can't download the file from the website ... ? I got this error : Warning: Cannot modify header information - headers already sent by (output started at /usr/local/www/data/myproject/www/business/inc/class.IncludedScript.inc.php:255) in /usr/local/www/data/myproject/www/core/inc/class.DownloadScript.inc.php on line 492 -- Edit bug report at http://bugs.php.net/?id=28778&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28778&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28778&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28778&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28778&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28778&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28778&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28778&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28778&r=support Expected behavior: http://bugs.php.net/fix.php?id=28778&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28778&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28778&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28778&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28778&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28778&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28778&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28778&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28778&r=float