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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC