Author: fabien
Date: 2010-03-02 18:47:14 +0100 (Tue, 02 Mar 2010)
New Revision: 28347
Modified:
branches/1.2/lib/response/sfWebResponse.class.php
branches/1.3/lib/response/sfWebResponse.class.php
branches/1.4/lib/response/sfWebResponse.class.php
Log:
[1.2, 1.3, 1.4] removed cookies from Response objects serialization as it does
not make any sense and can cause weird behaviors
Modified: branches/1.2/lib/response/sfWebResponse.class.php
===================================================================
--- branches/1.2/lib/response/sfWebResponse.class.php 2010-03-02 16:14:21 UTC
(rev 28346)
+++ branches/1.2/lib/response/sfWebResponse.class.php 2010-03-02 17:47:14 UTC
(rev 28347)
@@ -816,7 +816,7 @@
*/
public function serialize()
{
- return serialize(array($this->content, $this->statusCode,
$this->statusText, $this->options, $this->cookies, $this->headerOnly,
$this->headers, $this->metas, $this->httpMetas, $this->stylesheets,
$this->javascripts, $this->slots));
+ return serialize(array($this->content, $this->statusCode,
$this->statusText, $this->options, $this->headerOnly, $this->headers,
$this->metas, $this->httpMetas, $this->stylesheets, $this->javascripts,
$this->slots));
}
/**
@@ -824,7 +824,7 @@
*/
public function unserialize($serialized)
{
- list($this->content, $this->statusCode, $this->statusText, $this->options,
$this->cookies, $this->headerOnly, $this->headers, $this->metas,
$this->httpMetas, $this->stylesheets, $this->javascripts, $this->slots) =
unserialize($serialized);
+ list($this->content, $this->statusCode, $this->statusText, $this->options,
$this->headerOnly, $this->headers, $this->metas, $this->httpMetas,
$this->stylesheets, $this->javascripts, $this->slots) =
unserialize($serialized);
}
/**
Modified: branches/1.3/lib/response/sfWebResponse.class.php
===================================================================
--- branches/1.3/lib/response/sfWebResponse.class.php 2010-03-02 16:14:21 UTC
(rev 28346)
+++ branches/1.3/lib/response/sfWebResponse.class.php 2010-03-02 17:47:14 UTC
(rev 28347)
@@ -818,7 +818,7 @@
*/
public function serialize()
{
- return serialize(array($this->content, $this->statusCode,
$this->statusText, $this->options, $this->cookies, $this->headerOnly,
$this->headers, $this->metas, $this->httpMetas, $this->stylesheets,
$this->javascripts, $this->slots));
+ return serialize(array($this->content, $this->statusCode,
$this->statusText, $this->options, $this->headerOnly, $this->headers,
$this->metas, $this->httpMetas, $this->stylesheets, $this->javascripts,
$this->slots));
}
/**
@@ -826,7 +826,7 @@
*/
public function unserialize($serialized)
{
- list($this->content, $this->statusCode, $this->statusText, $this->options,
$this->cookies, $this->headerOnly, $this->headers, $this->metas,
$this->httpMetas, $this->stylesheets, $this->javascripts, $this->slots) =
unserialize($serialized);
+ list($this->content, $this->statusCode, $this->statusText, $this->options,
$this->headerOnly, $this->headers, $this->metas, $this->httpMetas,
$this->stylesheets, $this->javascripts, $this->slots) =
unserialize($serialized);
}
/**
Modified: branches/1.4/lib/response/sfWebResponse.class.php
===================================================================
--- branches/1.4/lib/response/sfWebResponse.class.php 2010-03-02 16:14:21 UTC
(rev 28346)
+++ branches/1.4/lib/response/sfWebResponse.class.php 2010-03-02 17:47:14 UTC
(rev 28347)
@@ -818,7 +818,7 @@
*/
public function serialize()
{
- return serialize(array($this->content, $this->statusCode,
$this->statusText, $this->options, $this->cookies, $this->headerOnly,
$this->headers, $this->metas, $this->httpMetas, $this->stylesheets,
$this->javascripts, $this->slots));
+ return serialize(array($this->content, $this->statusCode,
$this->statusText, $this->options, $this->headerOnly, $this->headers,
$this->metas, $this->httpMetas, $this->stylesheets, $this->javascripts,
$this->slots));
}
/**
@@ -826,7 +826,7 @@
*/
public function unserialize($serialized)
{
- list($this->content, $this->statusCode, $this->statusText, $this->options,
$this->cookies, $this->headerOnly, $this->headers, $this->metas,
$this->httpMetas, $this->stylesheets, $this->javascripts, $this->slots) =
unserialize($serialized);
+ list($this->content, $this->statusCode, $this->statusText, $this->options,
$this->headerOnly, $this->headers, $this->metas, $this->httpMetas,
$this->stylesheets, $this->javascripts, $this->slots) =
unserialize($serialized);
}
/**
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.