php.net |  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
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: sjoerd at react dot com
New email:
PHP Version: OS:

 

 [2010-06-23 14:40 UTC] sjoerd at react dot com
Description:
------------
$_SERVER['CONTENT_TYPE'] contains the content-type of the request, but this is not 
documented. I would expect it here: 
http://www.php.net/manual/en/reserved.variables.server.php


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-23 14:52 UTC] degeberg@php.net
-Status: Open +Status: Bogus
 [2010-06-23 14:52 UTC] degeberg@php.net
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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 15:01:34 2025 UTC