|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52159 $_SERVER['CONTENT_TYPE'] is not documented
Submitted: 2010-06-23 14:40 UTC Modified: 2010-06-23 14:52 UTC
From: sjoerd at react dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.3.2 OS: any/all
Private report: No CVE-ID: None
 [2010-06-23 14:40 UTC] sjoerd at react dot com
$_SERVER['CONTENT_TYPE'] contains the content-type of the request, but this is not 
documented. I would expect it here:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-23 14:52 UTC]
-Status: Open +Status: Bogus
 [2010-06-23 14:52 UTC]
As the page you linked to says: "The entries in this array are created by the web server. There is no guarantee that every web server will provide any of these; servers may omit some, or provide others not listed here."

There is no guarantee that CONTENT_TYPE will be present in $_SERVER. It's not the case on Apache/2.2.14 (Ubuntu) for instance.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jul 23 16:01:23 2021 UTC