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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:28 2024 UTC