Eric Peters wrote:
I think I've boiled my problemfor some reason I can't header() a serialized $_POST variable
Running PHP 5.0 Final (and also tested with 4.3.3):
-- begin file --
?php
function jpcache_debug2($s)
{
header(X-CacheDebug-five: $s);
print $s;
}
$myVariable =
:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Crazy Serialize/Header/$_POST PHP Error - Is this a bug?
Eric Peters wrote:
I think I've boiled my problemfor some reason I can't header() a
serialized $_POST variable
Running PHP 5.0 Final (and also tested with 4.3.3):
-- begin file
Schierbeck [EMAIL PROTECTED]; [EMAIL PROTECTED];
Curt Zirzow [EMAIL PROTECTED]
Sent: Tuesday, August 24, 2004 10:38 AM
Subject: RE: [PHP] Re: Crazy Serialize/Header/$_POST PHP Error - Is this a
bug?
Check this out:
bash-2.05$ cat test.php
?php
function jpcache_debug2($s2
, Eric [EMAIL PROTECTED]
To: Daniel Schierbeck [EMAIL PROTECTED]; [EMAIL PROTECTED];
Curt Zirzow [EMAIL PROTECTED]
Sent: Tuesday, August 24, 2004 10:38 AM
Subject: RE: [PHP] Re: Crazy Serialize/Header/$_POST PHP Error - Is this a
bug?
Check this out:
bash-2.05$ cat test.php
?php
Peters, Eric wrote:
You have to look at the headers
Exactly...submit the form and the HEADER version of the string returns a:0:{}
But, a print() of the same string variable correctly returns
a:1:{s:3:foo;s:3:bar;}
Dig deeper into it :)
Okay. Running 4.3.6 and 5.0.0, I see the following requests
]
Sent: Tuesday, August 24, 2004 11:42 AM
To: Peters, Eric
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Crazy Serialize/Header/$_POST PHP Error - Is this a bug?
Peters, Eric wrote:
You have to look at the headers
Exactly...submit the form and the HEADER version of the string returns a:0
6 matches
Mail list logo