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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
19 + 39 = ?
Subscribe to this entry?

 
 [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-2020 The PHP Group
All rights reserved.
Last updated: Fri Nov 27 18:01:25 2020 UTC