#27863 [NEW]: $_GET var problem

From: Date: Mon, 05 Apr 2004 07:47:30 +0000
Subject: #27863 [NEW]: $_GET var problem
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57507@lists.php.net to get a copy of this message
From: rudenko at id dot com dot ua Operating system: Fedara Core 1 (Yarrow) PHP version: 4.3.4 PHP Bug Type: *General Issues Bug description: $_GET var problem Description: ------------ When I unset value of array which equal to $_GET superglobal, php unsets element in $_GET superglobal, but not in this array. Reproduce code: --------------- <? echo '<pre>'; $x = $_GET; print_R($x); unset($x['id']); print_R($_GET); ?> Expected result: ---------------- Array ( [test] => 123 ) Array ( [test] => 123 [id] => 5 ) Actual result: -------------- Array ( [test] => 123 [id] => 5 ) Array ( [test] => 123 ) -- Edit bug report at http://bugs.php.net/?id=27863&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27863&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27863&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27863&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27863&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27863&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27863&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27863&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27863&r=support Expected behavior: http://bugs.php.net/fix.php?id=27863&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27863&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27863&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27863&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27863&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27863&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27863&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27863&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27863&r=float

« previous php.bugs (#57507) next »