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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri May 17 21:01:33 2024 UTC