php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76637 Default $_REQUEST is Misrepresented in Documentation
Submitted: 2018-07-18 10:10 UTC Modified: 2018-07-21 10:02 UTC
From: dor dot tumarkin at checkmarx dot com Assigned:
Status: Open Package: Documentation problem
PHP Version: 7.2.7 OS: Any
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: dor dot tumarkin at checkmarx dot com
New email:
PHP Version: OS:

 

 [2018-07-18 10:10 UTC] dor dot tumarkin at checkmarx dot com
Description:
------------
---
From manual page: http://www.php.net/reserved.variables.request
---

Documentation states the $_REQUEST is "An associative array that by default contains the contents of $_GET, $_POST and $_COOKIE."
In PHP 7.2.7 (and likely several versions lower), $_COOKIE is not part of $_REQUEST by default, though it could be re-enabled via php.ini. The default behavior is to only include $_GET and $_POST in request_order "due to security concerns", likely because adding C for $_COOKIES enables a wider breadth for value shadowing attacks.

Test script:
---------------
Not applicable.


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Tue Dec 11 13:01:26 2018 UTC