#27863 [Opn->Csd]: $_GET var problem

From: Date: Mon, 05 Apr 2004 09:13:59 +0000
Subject: #27863 [Opn->Csd]: $_GET var problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57514@lists.php.net to get a copy of this message
ID: 27863 User updated by: rudenko at id dot com dot ua Reported By: rudenko at id dot com dot ua -Status: Open +Status: Closed Bug Type: *General Issues Operating System: Fedara Core 1 (Yarrow) PHP Version: 4.3.4 New Comment: Zend Optimizer bug fixed in version 2.5.1 Previous Comments: ------------------------------------------------------------------------ [2004-04-05 04:15:23] rudenko at id dot com dot ua At the moment I use Zend Optimizer 2.5.0 When I turn off Zend Optimizer, script work correctly ------------------------------------------------------------------------ [2004-04-05 03:59:44] tony2001@php.net I've tested it with PHP 5-CVS, 4.3-CVS, 4.3.4 & 4.3.3 and I'm not able to reproduce this behaviour. Try to turn off Zend Optimizer, I already saw some similar complaints. ------------------------------------------------------------------------ [2004-04-05 03:47:30] rudenko at id dot com dot ua 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 this bug report at http://bugs.php.net/?id=27863&edit=1

« previous php.bugs (#57514) next »