41 Commits

Author SHA1 Message Date
Wilmer Arambula
97a4d711ec Merge branch 'master' into sync-master-2052. 2025-04-26 19:03:07 -04:00
Kairat Jenishev
52ff9dbd48 Prefer classic if construct #20294 2024-12-09 17:59:51 +06:00
Kairat Jenishev
b3c23da52f Append additional (error) message only if error_get_last() returns non-null value #20294 2024-12-08 23:34:05 +06:00
Alexander Makarov
52e4a3e645 release version 2.0.50 2024-05-30 20:23:31 +03:00
Wilmer Arambula
20d6c65db2 Merge branch 'master' into sync-to-master. 2024-03-20 06:11:31 -03:00
Razvan Grigore
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03:00
Wilmer Arambula
0c8b043001 Merge branch 'master' into synchronize-to-master. 2023-10-22 07:20:26 -03:00
Bizley
7b1761d9e1 Revert to 169c5fb 2023-10-22 11:39:45 +02:00
Wilmer Arambula
a7364aeb87 Sync to master. (#20012)
* added pcntl to requirements check

* Fix #13920: Fixed erroneous validation for specific cases

* Fix #13920: Added my name to CHANGELOG.md

* trim(): Passing null to parameter #1 ($string) of type string is deprecated

* Added section about Unsafe Reflection in Security best practices doc (#19948)

Co-authored-by: Bizley <pawel.bizley@gmail.com>

* Update CHANGELOG.md

* Fixed tests.

* Fix #13920: Add unit test

* Update `bower-asset/inputmask`, `bower-asset/punycode`.

* added CHANGELOG line

* Fix order.

* fix: #19978 - Mistake in Korean translation

* fix: keep doublequote

* Do not duplicate log messages in memory

* Update framework/log/FileTarget.php

Co-authored-by: Bizley <pawel.bizley@gmail.com>

* Update concept-di-container.md

Сслка "Конфигурация приложения" была не верной, она вела на страницу "Service-locator'a"

* Update CHANGELOG.md

* release version 2.0.49.1

* prepare for next release

* Revert changes in `mimeTypes.php` from 4a1f2c6b9b

restores https://github.com/yiisoft/yii2/pull/19936

* update actions/checkout to v4

* Fix mime type generator

* Added note

* Update structure-controllers.md (#20003)

добавил пропущенное слово "как"

* Update CHANGELOG.md

2.0.49.2 changelog

* release version 2.0.49.2

* prepare for next release

* New methods: BaseActiveRecord::loadRelations() and BaseActiveRecord::loadRelationsFor().

* Fixed a bug where the yii serve command would break if a custom router was supplied and it had a space in the path

* Fix `MaskedInputAsset::class`.

* Fix #19927: Fixed `console\controllers\MessageController` when saving translations to database: fixed FK error when adding new string and language at the same time, checking/regenerating all missing messages and dropping messages for unused languages

* Added 'zh' into 'framework/messages/config.php' (#19995)

---------

Co-authored-by: Tobias Munk <schmunk@usrbin.de>
Co-authored-by: Tim Fischer <tf@maschinensucher.de>
Co-authored-by: Tim Fischer <35448254+tim-fischer-maschinensucher@users.noreply.github.com>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Oleg Poludnenko <ua.oleg@gmail.com>
Co-authored-by: Bizley <pawel.bizley@gmail.com>
Co-authored-by: Sonia Zorba <zonia3000@gmail.com>
Co-authored-by: Tobias Munk <t.munk@herzogkommunikation.de>
Co-authored-by: Akbar Herlambang <akbar6393222@yahoo.com>
Co-authored-by: lubosdz <lubosdz@gmail.com>
Co-authored-by: Yuriy Bachevskiy <Materik-r@yandex.ru>
Co-authored-by: Robert Korulczyk <robert@korulczyk.pl>
Co-authored-by: salehhashemi1992 <81674631+salehhashemi1992@users.noreply.github.com>
Co-authored-by: PowerGamer1 <PowerGamer1@users.noreply.github.com>
Co-authored-by: Brad Bell <brad@pixelandtonic.com>
Co-authored-by: Alexandru Trandafir Catalin <alex@heavydots.com>
Co-authored-by: Nabi KaramAliZadeh <NabiKAZ@gmail.com>
2023-10-19 18:17:15 +03:00
lubosdz
7f3397a5cc Update framework/log/FileTarget.php
Co-authored-by: Bizley <pawel.bizley@gmail.com>
2023-10-01 23:31:10 +02:00
lubosdz
764926a877 Do not duplicate log messages in memory 2023-09-29 09:49:05 +02:00
Wilmer Arambula
5311fac571 Remove deprecated property to FileTarget::class. 2023-09-22 18:19:59 -03:00
Wilmer Arambula
671fbefe84 File Log writer without newline. (#19941)
* File Log writer without newline.

* Fix minor correction.

* Fix tests.

* Add more test.

* Add line to CHANGELOG.md.
2023-08-30 14:14:12 +02:00
Wilmer Arambula
7d2e2b9e70 Fix #16208: Fix yii\log\FileTarget to not export empty messages 2023-07-24 10:01:24 +03:00
Michael Härtl
123802e4cb Fix #19259: Fix yii\log\FileTarget locking and always rotate files only by copy 2022-08-17 00:24:50 +03:00
Bizley
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
Brandon Kelly
a87c02c712 Fix more types (#19333)
* Migration::upsert() returns void

* Unneeded `@property` tags

* Add missing `null` param/return types

* Null types for db\Query + db\ActiveQuery

* Fixed testSelect

* Null types for Validator

* Several more null types

* One more

* Make AccessRule::$allow always a boolean

It doesn't have any special null handling, so it's safe to default to false

* Validator::$skipOnEmpty is always a boolean

* Catch all throwable from Widget::widget()

* Don't limit $previous args to \Exception

The actual \Exception allows $previous to be any throwable in PHP 7+

* Add Throwable catch block to Instance::get()

* Throwable cleanup

Comment changes only.

- Document \Throwable instead of \Exception wherever appropriate
- Removed redundant exception/error classes when \Throwable is referenced

* Yii::setlogger() accepts null

* ArrayHelper::removeValue() can remove any type of value

* Change default $allow value to false
2022-04-03 11:20:21 +02:00
Bizley
0041f034fd [doc] Update PHP doc links (#18957)
* Replace https://secure.php.net with https://www.php.net

* Replace http://www.php.net with https://www.php.net
2021-10-19 14:50:26 +02:00
Oleg Poludnenko
658c822f30 Fix #18120: Include path to the log file into error message if FileTarget::export fails 2020-06-19 11:35:14 +03:00
Sergey
f69670fb65 Fix #17798: Avoid creating folder for stream log targets in FileTarget 2020-02-17 15:53:03 +03:00
Pavel Dovlatov
bdb7c64910 Update to https protocol for php.net links (#17168) [skip ci]
* Updated php.net link for some MemCache properties [skip ci]

* Changed protocol to https for links to php.net in comments

* Changed protocol to https for links to php.net in code

* Changed www.php.net (http) to secure.php.net (https) in comments

* Changed www.php.net (http) to secure.php.net (https) in code

* Changed protocol to https for links to php.net in UPGRADE.md

* Changed protocol to https for links to pecl.php.net in comments

* Changed us.php.net to secure.php.net (https) in comments

* Changed protocol to https for links to php.net in docs

* Changed www.php.net (http) to secure.php.net (https) in docs

* Changed protocol to https for links to pecl.php.net in docs

* Changed ru/jp.php.net to secure.php.net (https) in docs

Don't sure about russian guide: is this links meant to be for guide on russian, or not?
2019-02-28 13:09:27 +03:00
Alexander Makarov
25e6cd45c5 Fixes #16752: Fix rotating files under Windows 2018-09-30 20:23:27 +03:00
SilverFire - Dmitry Naumenko
22832b7c49 release version 2.0.14 2018-02-19 00:27:09 +02:00
Dmitry Alekseev
bf19882a23 is_dir check is removed 2018-02-18 16:22:45 +03:00
Dmitry Alekseev
484d2a63ec is_dir check is removed 2018-02-18 14:48:06 +03:00
Dmitry Alekseev
1b14628dbf Directory creation is moved to export() method 2018-02-18 12:57:09 +03:00
Bizley
8b74e29663 Fixes #14296: Fixed log targets to throw exception in case log can not be properly exported 2018-02-04 01:20:09 +07:00
Elvira Sheina
9a16f8fecc Fixes #8983: Only truncate the original log file for rotation 2017-11-30 23:23:21 +03:00
Carsten Brandt
4b9e48b8dc improved docs: link term "path alias" to the guide 2017-06-02 10:45:20 +02:00
Robert Korulczyk
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
Klimov Paul
09b1fd47e0 Fixed yii\log\FileTarget does not apply fileMode for rotated via copy files 2016-08-30 13:41:54 +03:00
Carsten Brandt
7c609ad8fb allow disabling log rotation
fixes #6896

close #6913
2015-01-22 16:57:23 +01:00
Carsten Brandt
b5ccf3bc04 changed default for rotateByCopy of FileTarget
works on windows out of the box now.
fixes #3989
2014-06-27 14:53:08 +02:00
Carsten Brandt
bd9cddb8d9 fixed rotateByCopy to avoid any rename()
fixes issue #3989
2014-06-27 12:54:20 +02:00
Carsten Brandt
cc5c413711 better fix for #2988 2014-06-25 23:17:45 +02:00
Carsten Brandt
18c3e8ef01 clear stat cache in logger to avoid cache of file state
fixes #2988
2014-06-25 23:14:33 +02:00
Carsten Brandt
efbd23b52e refactored logger to support array values out of the box.
fixes #3245, #3244
2014-06-09 14:58:36 +02:00
Paweł 'Zibi' Zaremba
b1cf051a73 Adding rotateByCopy to yii\log\FileTarget #3562 2014-05-26 10:25:15 +02:00
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
peeradach001
f36ec8c9ca doc fix 2014-01-24 16:25:41 +07:00
Qiang Xue
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00