php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15055 setting a _GET[] variable does not set it in _REQUEST
Submitted: 2002-01-15 15:48 UTC Modified: 2002-01-16 07:17 UTC
From: pete at pwo dot ca Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.1.1 OS: Linux
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pete at pwo dot ca
New email:
PHP Version: OS:

 

 [2002-01-15 15:48 UTC] pete at pwo dot ca
If you set a variable in the $_GET array,
it will not show up in the $_REQUEST array.

<?
$_GET[page] = "index.php";
echo "get=".$_GET[page]."\n";
echo "request=".$_REQUEST[page]."\n";
?>

This will output:

get=index.php
request=

But it should output:

get=index.php
request=index.php

My configure was:
./configure \
--enable-sockets \
--with-ftp \
--with-xml \
--with-pgsql \
--with-apxs=/usr/local/apache/bin/apxs \
--with-imap

Thanks,
-Pete

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-16 07:17 UTC] sander@php.net
_REQUEST is only initialized once (at start). Any later changes to _GET and/or _POST will not show up.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 09:01:28 2025 UTC