|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
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
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: Sun Apr 18 06:01:23 2021 UTC