#39223 [Opn->Bgs]: $_Session and $_Get get confused

From: Date: Sat, 21 Oct 2006 21:31:35 +0000
Subject: #39223 [Opn->Bgs]: $_Session and $_Get get confused
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-103850@lists.php.net to get a copy of this message
ID: 39223 Updated by: tony2001@php.net Reported By: dgk at visskiss dot org -Status: Open +Status: Bogus Bug Type: Session related Operating System: Fedora PHP Version: 5.1.6 New Comment: Disable register_globals. Previous Comments: ------------------------------------------------------------------------ [2006-10-21 20:58:32] dgk at visskiss dot org Description: ------------ I am getting session variables with the same value as the $_GET variables... please advise Reproduce code: --------------- session_start(); $sesuid= $_SESSION['uid']; //check for the _get if (isset( $_GET['mid'])) { $uid = $_GET['mid']; } else if (isset( $_GET['uid'])) { $uid = $_GET['uid']; } else { echo '<p class="error">You have reached this page in error (no model selected).</p>'; } $_SESSION['uid']=$sesuid; Expected result: ---------------- $_GET['uid'] get's the value of $_SES['uid'] Actual result: -------------- neither $_GET nore $_SES['uid'] should change ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39223&edit=1

« previous php.bugs (#103850) next »