|  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-07-18 10:10 UTC] dor dot tumarkin at checkmarx dot com
From manual page:

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.


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu May 06 12:01:23 2021 UTC