php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28778 space after ?> in an include_once_file prevent dowload
Submitted: 2004-06-14 18:01 UTC Modified: 2004-06-14 18:03 UTC
From: stephane at dipp dot net Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.3.7 OS: FreeBSD 4.9
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: stephane at dipp dot net
New email:
PHP Version: OS:

 

 [2004-06-14 18:01 UTC] stephane at dipp dot net
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




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-14 18:03 UTC] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

This is expected. 
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 26 00:00:03 2025 UTC