php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #26961 Wrong Content-Disposition-Header
Submitted: 2004-01-19 04:44 UTC Modified: 2004-01-19 10:14 UTC
From: php_bugs at ecora dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: irrelevant
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: php_bugs at ecora dot de
New email:
PHP Version: OS:

 

 [2004-01-19 04:44 UTC] php_bugs at ecora dot de
Description:
------------
The Content-Disposition-Header in the 9. (grey) example box is wrong:

// It will be called downloaded.pdf
header("Content-Disposition: attachment; filename=downloaded.pdf");

// should be:
header('Content-Disposition: attachment; filename="downloaded.pdf"');

RFC 2616 (HTTP/1.1), Chapter 19.5.1:
content-disposition = "Content-Disposition" ":"
                              disposition-type 
[..]
filename-parm = "filename" "=" quoted-string


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-19 08:03 UTC] php_bugs at ecora dot de
I forgot the most important information:

The wrong header is in the documentation of the header function.
 [2004-01-19 10:14 UTC] sp@php.net
I looked in the RFCs and well, you are right!

Fixed this in the XML-source of the manual. May take some time to show up in the manual.

Thanks for reporting!
 [2020-02-07 06:12 UTC] phpdocbot@php.net
Automatic comment on behalf of sp
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=65d115178af0e2c4d103ec981b02be559ab6dc15
Log: Fixed Bug #26961...
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Sep 10 23:00:02 2025 UTC