From fd6ccb615c7f75b15c9bee7f2921f012c3cc2845 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Wed, 22 Jan 2020 01:29:38 +0300 Subject: [PATCH] release version 2.0.32 --- framework/BaseYii.php | 2 +- framework/CHANGELOG.md | 28 ++++++++++++++-------------- framework/base/ErrorHandler.php | 2 +- framework/web/UploadedFile.php | 1 - 4 files changed, 16 insertions(+), 17 deletions(-) diff --git a/framework/BaseYii.php b/framework/BaseYii.php index 5e84436c68..2a3d1394c4 100644 --- a/framework/BaseYii.php +++ b/framework/BaseYii.php @@ -93,7 +93,7 @@ class BaseYii */ public static function getVersion() { - return '2.0.32-dev'; + return '2.0.32'; } /** diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 9ecd6c93b0..35e79c6da5 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -1,25 +1,25 @@ Yii Framework 2 Change Log ========================== -2.0.32 under development ------------------------- +2.0.32 January 21, 2020 +----------------------- -- Bug #17037: Fix uploaded file saving method when data came from `MultipartFormDataParser` (sup-ham) -- Bug #17803: Fix `ErrorHandler` unregister and register to only change global state when applicable (SamMousa) -- Bug #17744: Fix a bug with setting incorrect `defaultValue` to AR column with `CURRENT_TIMESTAMP(x)` as default expression (MySQL >= 5.6.4) (bizley) -- Bug #17755: Fix a bug for web request with `trustedHosts` set to format `['10.0.0.1' => ['X-Forwarded-For']]` (shushenghong) -- Enh #17729: Path alias support was added to `yii\web\UploadFile::saveAs()` (sup-ham) -- Bug #17749: Fix logger dispatcher behavior when target crashes in PHP 7.0+ (kamarton) -- Bug #17762: PHP 7.4: Remove special condition for converting PHP errors to exceptions if they occurred inside of `__toString()` call (rob006) -- Bug #17771: migrate/fresh was not returning exit code (samdark) -- Bug #17767: Make `Formatter::formatNumber` method protected (TheCodeholic) - Bug #12539: `yii\filters\ContentNegotiator` now generates 406 'Not Acceptable' instead of 415 'Unsupported Media Type' on content-type negotiation fail (PowerGamer1) -- Bug #17760: Fix `JSON::encode()` for `\DateTimeInterface` under PHP 7.4 (samdark) -- Enh #17792: Add support for `aria` attributes to `yii\helpers\BaseHtml::renderTagAttributes()` (brandonkelly) -- Bug #17793: Fix inconsistent handling of null `data` attribute values in `yii\helpers\BaseHtml::renderTagAttributes()` (brandonkelly) +- Bug #17037: Fix uploaded file saving method when data came from `MultipartFormDataParser` (sup-ham) - Bug #17300: Fix class-level event handling with wildcards (Toma91) - Bug #17635: Fix varbinary data handling for MSSQL (toatall) +- Bug #17744: Fix a bug with setting incorrect `defaultValue` to AR column with `CURRENT_TIMESTAMP(x)` as default expression (MySQL >= 5.6.4) (bizley) +- Bug #17749: Fix logger dispatcher behavior when target crashes in PHP 7.0+ (kamarton) +- Bug #17755: Fix a bug for web request with `trustedHosts` set to format `['10.0.0.1' => ['X-Forwarded-For']]` (shushenghong) +- Bug #17760: Fix `JSON::encode()` for `\DateTimeInterface` under PHP 7.4 (samdark) +- Bug #17762: PHP 7.4: Remove special condition for converting PHP errors to exceptions if they occurred inside of `__toString()` call (rob006) - Bug #17766: Remove previous PJAX event binding before registering new one (samdark) +- Bug #17767: Make `Formatter::formatNumber` method protected (TheCodeholic) +- Bug #17771: migrate/fresh was not returning exit code (samdark) +- Bug #17793: Fix inconsistent handling of null `data` attribute values in `yii\helpers\BaseHtml::renderTagAttributes()` (brandonkelly) +- Bug #17803: Fix `ErrorHandler` unregister and register to only change global state when applicable (SamMousa) +- Enh #17729: Path alias support was added to `yii\web\UploadFile::saveAs()` (sup-ham) +- Enh #17792: Add support for `aria` attributes to `yii\helpers\BaseHtml::renderTagAttributes()` (brandonkelly) 2.0.31 December 18, 2019 diff --git a/framework/base/ErrorHandler.php b/framework/base/ErrorHandler.php index 6dc08b6476..27ee52d442 100644 --- a/framework/base/ErrorHandler.php +++ b/framework/base/ErrorHandler.php @@ -50,12 +50,12 @@ abstract class ErrorHandler extends Component * @var \Exception from HHVM error that stores backtrace */ private $_hhvmException; - /** * @var bool whether this instance has been registered using `register()` */ private $_registered = false; + /** * Register this error handler. * @since 2.0.32 this will not do anything if the error handler was already registered diff --git a/framework/web/UploadedFile.php b/framework/web/UploadedFile.php index 500e45d432..b20f18ff76 100644 --- a/framework/web/UploadedFile.php +++ b/framework/web/UploadedFile.php @@ -62,7 +62,6 @@ class UploadedFile extends BaseObject * @var resource a temporary uploaded stream resource used within PUT and PATCH request. */ private $_tempResource; - private static $_files;