Skip to content

Commit 6e694ee

Browse files
committed
release version 2.0.38
1 parent 9abccb9 commit 6e694ee

File tree

5 files changed

+21
-19
lines changed

5 files changed

+21
-19
lines changed

Diff for: framework/BaseYii.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class BaseYii
9393
*/
9494
public static function getVersion()
9595
{
96-
return '2.0.38-dev';
96+
return '2.0.38';
9797
}
9898

9999
/**

Diff for: framework/CHANGELOG.md

+15-14
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
Yii Framework 2 Change Log
22
==========================
33

4-
2.0.38 under development
5-
------------------------
4+
2.0.38 September 14, 2020
5+
-------------------------
66

7-
- Bug: (CVE-2020-15148): Disable unserialization of `yii\db\BatchQueryResult` to prevent remote code execution in case application calls unserialize() on user input containing specially crafted string (samdark, russtone)
8-
- Enh #18213: Do not load fixtures with circular dependencies twice instead of throwing an exception (JesseHines0)
9-
- Bug #18066: Fix `yii\db\Query::create()` wasn't using all info from `withQuery()` (maximkou)
10-
- Bug #18269: Fix integer safe attribute to work properly in `yii\base\Model` (Ladone)
11-
- Enh #18236: Allow `yii\filters\RateLimiter` to accept a closure function for the `$user` property in order to assign values on runtime (nadar)
12-
- Bug #18248: Render only one stack trace on a console for chained exceptions (mikehaertl)
13-
- Bug #18233: Add PHP 8 support (samdark)
14-
- Enh #18196: `yii\rbac\DbManager::$checkAccessAssignments` is now `protected` (alex-code)
15-
- Bug #18239: Fix support of no-extension files for `FileValidator::validateExtension()` (darkdef)
16-
- Bug #18229: Add a flag to specify SyBase database when used with pdo_dblib (darkdef)
177
- Bug #13973: Correct alterColumn for MSSQL & drop constraints before dropping a column (darkdef)
18-
- Bug #18040: Display width specification for integer data types was deprecated in MySQL 8.0.19 (terabytesoftw)
198
- Bug #15265: PostgreSQL > 10.0 is not pass tests with default value of timestamp CURRENT_TIMESTAMP (terabytesoftw)
20-
- Bug #18232: Fail tests pgsql v-10.14, v-11.9, v-12-latest (terabytesoftw)
219
- Bug #16892: Validation error class was not applied to checkbox and radio when validationStateOn = self::VALIDATION_STATE_ON_INPUT (dan-szabo, samdark)
10+
- Bug #18040: Display width specification for integer data types was deprecated in MySQL 8.0.19 (terabytesoftw)
11+
- Bug #18066: Fix `yii\db\Query::create()` wasn't using all info from `withQuery()` (maximkou)
12+
- Bug #18229: Add a flag to specify SyBase database when used with pdo_dblib (darkdef)
13+
- Bug #18232: Fail tests pgsql v-10.14, v-11.9, v-12-latest (terabytesoftw)
14+
- Bug #18233: Add PHP 8 support (samdark)
15+
- Bug #18239: Fix support of no-extension files for `FileValidator::validateExtension()` (darkdef)
2216
- Bug #18245: Make resolving DI references inside of arrays in dependencies optional (SamMousa, samdark, hiqsol)
17+
- Bug #18248: Render only one stack trace on a console for chained exceptions (mikehaertl)
18+
- Bug #18269: Fix integer safe attribute to work properly in `yii\base\Model` (Ladone)
19+
- Bug: (CVE-2020-15148): Disable unserialization of `yii\db\BatchQueryResult` to prevent remote code execution in case application calls unserialize() on user input containing specially crafted string (samdark, russtone)
20+
- Enh #18196: `yii\rbac\DbManager::$checkAccessAssignments` is now `protected` (alex-code)
21+
- Enh #18213: Do not load fixtures with circular dependencies twice instead of throwing an exception (JesseHines0)
22+
- Enh #18236: Allow `yii\filters\RateLimiter` to accept a closure function for the `$user` property in order to assign values on runtime (nadar)
23+
2324

2425
2.0.37 August 07, 2020
2526
----------------------

Diff for: framework/di/Container.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@
9393
*
9494
* @property array $definitions The list of the object definitions or the loaded shared objects (type or ID =>
9595
* definition or instance). This property is read-only.
96-
*
97-
* @property bool $resolveArrays whether to attempt to resolve elements in array dependencies
96+
* @property bool $resolveArrays Whether to attempt to resolve elements in array dependencies. This property
97+
* is write-only.
9898
*
9999
* @author Qiang Xue <[email protected]>
100100
* @since 2.0
@@ -122,12 +122,12 @@ class Container extends Component
122122
* is associated with a list of constructor parameter types or default values.
123123
*/
124124
private $_dependencies = [];
125-
126125
/**
127126
* @var bool whether to attempt to resolve elements in array dependencies
128127
*/
129128
private $_resolveArrays = false;
130129

130+
131131
/**
132132
* Returns an instance of the requested class.
133133
*

Diff for: framework/filters/AccessRule.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class AccessRule extends Component
114114
* @var array list of user IP addresses that this rule applies to. An IP address
115115
* can contain the wildcard `*` at the end so that it matches IP addresses with the same prefix.
116116
* For example, '192.168.*' matches all IP addresses in the segment '192.168.'.
117-
* It may also contain a pattern/mask like '172.16.0.0/12' which would match all IPs from the
117+
* It may also contain a pattern/mask like '172.16.0.0/12' which would match all IPs from the
118118
* 20-bit private network block in RFC1918.
119119
* If not set or empty, it means this rule applies to all IP addresses.
120120
* @see Request::userIP

Diff for: framework/rbac/DbManager.php

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ class DbManager extends BaseManager
106106
*/
107107
protected $checkAccessAssignments = [];
108108

109+
109110
/**
110111
* Initializes the application component.
111112
* This method overrides the parent implementation by establishing the database connection.

0 commit comments

Comments
 (0)