Bug #16238: some HTTP vars seems to have no value

From: Date: Sat, 23 Mar 2002 19:41:45 +0000
Subject: Bug #16238: some HTTP vars seems to have no value
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-3210@lists.php.net to get a copy of this message
From: akos@docca.hu Operating system: Linux PHP version: 4.1.2 PHP Bug Type: HTTP related Bug description: some HTTP vars seems to have no value I don't know is this a bug or feature: The problem: some of the http vars seems to has no value referenced by $varname or by $_REQUEST["varname"] but it has the right value at $_GET/$_POST["varname"]. Cause: a cookie named "varname" not deleted correctly by setcookie("varname") just truncated to "". I have this simple code (the point is: $partner): <?php echo "<br> -----------------<br>REQ:<br> "; var_dump($_REQUEST); echo "<br> -----------------<br>GET:<br>"; var_dump($_GET); echo "<br> -----------------<br>POST:<br> "; var_dump($_POST); echo "<br> -----------------<br> "; ?> Result: ----------------- REQ: array(12) { ["partner"]=> string(0) "" ["haszon"]=> string(1) "4" ["webcalendar_login"]=> string(4) "akos" ----------------- GET: array(0) { } ----------------- POST: array(2) { ["partner"]=> string(3) "162" ["haszon"]=> string(1) "4" } ----------------- -- Edit bug report at http://bugs.php.net/?id=16238&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16238&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16238&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16238&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16238&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16238&r=support Expected behavior: http://bugs.php.net/fix.php?id=16238&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16238&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16238&r=submittedtwice

« previous php.bugs (#3210) next »