Bug #16238 Updated: some HTTP vars seems to have no value
| From: | derick@php.net | Date: | Sat, 23 Mar 2002 20:10:28 +0000 |
| Subject: | Bug #16238 Updated: some HTTP vars seems to have no value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-3213@lists.php.net to get a copy of this message | ||
ID: 16238
Updated by: derick@php.net
Reported By: akos@docca.hu
-Status: Open
+Status: Feedback
Bug Type: HTTP related
Operating System: Linux
PHP Version: 4.1.2
New Comment:
Again, what does this show in your example:
var_dump ($_COOKIE)
It's important to see this in order to check this out :)
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-03-23 15:09:00] akos@docca.hu
Yes, I have a cookie says partner=
As I wrote, the problem has been solved: I had to change
setcookie("partner")
to
setcookie("partner", "", time() - 3600);
but I don't know exactly why. Before the upgrade (4.0.x to 4.1.2) had
no matter.
------------------------------------------------------------------------
[2002-03-23 14:49:05] derick@php.net
What does this show in your example:
var_dump ($_COOKIE)
Derick
------------------------------------------------------------------------
[2002-03-23 14:41:45] akos@docca.hu
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 this bug report at http://bugs.php.net/?id=16238&edit=1