Skip to content

Commit

Permalink
release version 1.1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
cebe committed Apr 2, 2019
1 parent 0f136db commit 733ac58
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
 Yii Framework Change Log
========================

Version 1.1.21 under development
--------------------------------
Version 1.1.21 April 2, 2019
----------------------------

- Bug #4220: Fixed PHP 7.2 incompatibility caused by the use of `create_function` in CHttpRequest and CProfileLogRoute (martinpetrasch, freezy-sk)
- Bug #4229: Remove deprecation errors from framework/web/js/source/jquery.yiiactiveform.js when using jQuery 3.1.1 (kenguest)
Expand Down
2 changes: 1 addition & 1 deletion framework/YiiBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class YiiBase
*/
public static function getVersion()
{
return '1.1.21-dev';
return '1.1.21';
}

/**
Expand Down
19 changes: 16 additions & 3 deletions framework/yiilite.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class YiiBase
private static $_logger;
public static function getVersion()
{
return '1.1.21-dev';
return '1.1.21';
}
public static function createWebApplication($config=null)
{
Expand Down Expand Up @@ -2805,6 +2805,13 @@ public function getPreferredAcceptType()
$preferredAcceptTypes=$this->getPreferredAcceptTypes();
return empty($preferredAcceptTypes) ? false : $preferredAcceptTypes[0];
}
private function stringCompare($a, $b)
{
if ($a[0] == $b[0]) {
return 0;
}
return ($a[0] < $b[0]) ? 1 : -1;
}
public function getPreferredLanguages()
{
if($this->_preferredLanguages===null)
Expand All @@ -2821,7 +2828,7 @@ public function getPreferredLanguages()
if($q)
$languages[]=array((float)$q,$matches[1][$i]);
}
usort($languages,create_function('$a,$b','if($a[0]==$b[0]) {return 0;} return ($a[0]<$b[0]) ? 1 : -1;'));
usort($languages, array($this, 'stringCompare'));
foreach($languages as $language)
$sortedLanguages[]=$language[1];
}
Expand Down Expand Up @@ -4680,10 +4687,12 @@ public function setCookieParams($value)
$data=session_get_cookie_params();
extract($data);
extract($value);
$this->freeze();
if(isset($httponly))
session_set_cookie_params($lifetime,$path,$domain,$secure,$httponly);
else
session_set_cookie_params($lifetime,$path,$domain,$secure);
$this->unfreeze();
}
public function getCookieMode()
{
Expand Down Expand Up @@ -4744,15 +4753,19 @@ public function getUseTransparentSessionID()
}
public function setUseTransparentSessionID($value)
{
$this->freeze();
ini_set('session.use_trans_sid',$value?'1':'0');
$this->unfreeze();
}
public function getTimeout()
{
return (int)ini_get('session.gc_maxlifetime');
}
public function setTimeout($value)
{
$this->freeze();
ini_set('session.gc_maxlifetime',$value);
$this->unfreeze();
}
public function openSession($savePath,$sessionName)
{
Expand Down Expand Up @@ -10727,4 +10740,4 @@ interface ILogFilter
{
public function filter(&$logs);
}
?>
?>

0 comments on commit 733ac58

Please sign in to comment.