Re: Crazy Serialize/Header/$_POST PHP Error - Is this a bug?

From: Date: Tue, 24 Aug 2004 02:01:43 +0000
Subject: Re: Crazy Serialize/Header/$_POST PHP Error - Is this a bug?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-194548@lists.php.net to get a copy of this message
* Thus wrote Peters, Eric: > I think I've boiled my problem....for 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"); Might need to have a quoted string: $s = str_replace('"','\\"', $s); // change " -> \" header("X-CacheDebug-five: \"$s\""); even with that logic, your output does seem strange indeed. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid!

« previous php.general (#194548) next »