Kohana v3.3.5
This commit is contained in:
@@ -604,7 +604,10 @@ class Kohana_Response implements HTTP_Response {
|
||||
{
|
||||
if (extension_loaded('http'))
|
||||
{
|
||||
$this->_header['set-cookie'] = http_build_cookie($this->_cookies);
|
||||
$cookies = version_compare(phpversion('http'), '2.0.0', '>=') ?
|
||||
(string) new \http\Cookie($this->_cookies) :
|
||||
http_build_cookie($this->_cookies);
|
||||
$this->_header['set-cookie'] = $cookies;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user