#24293 [Opn->Fbk]: $REQUEST_URI does not get filled

From: Date: Mon, 23 Jun 2003 14:58:35 +0000
Subject: #24293 [Opn->Fbk]: $REQUEST_URI does not get filled
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-42368@lists.php.net to get a copy of this message
ID: 24293 Updated by: pollita@php.net Reported By: giupnol at freemail dot it -Status: Open +Status: Feedback Bug Type: Variables related Operating System: Windows XP Pro PHP Version: 4.3.3RC1 New Comment: I'm assuming that this condition came about after an upgrade. Very likely an upgrade from a version in which register_globals was defaulted to on. Since 4.3.3 has register globals off that would explain your problem. Try referencing the variable as $_SERVER['REQUEST_URI'] or setting register_globals=on in your php.ini (and restarting your webserver). Previous Comments: ------------------------------------------------------------------------ [2003-06-23 03:00:52] giupnol at freemail dot it Description: ------------ $REQUEST_URI=="" Simply that. I use this global variable in order to keep history of the pages visited by the users, so i discovered this bug. Reproduce code: --------------- <? echo $REQUEST_URI; ?> Expected result: ---------------- /some_location/some_page.html Actual result: -------------- NONE ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24293&edit=1

« previous php.bugs (#42368) next »