27 Commits

Author SHA1 Message Date
123802e4cb Fix #19259: Fix yii\log\FileTarget locking and always rotate files only by copy 2022-08-17 00:24:50 +03:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
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
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
658c822f30 Fix #18120: Include path to the log file into error message if FileTarget::export fails 2020-06-19 11:35:14 +03:00
f69670fb65 Fix #17798: Avoid creating folder for stream log targets in FileTarget 2020-02-17 15:53:03 +03:00
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
25e6cd45c5 Fixes #16752: Fix rotating files under Windows 2018-09-30 20:23:27 +03:00
22832b7c49 release version 2.0.14 2018-02-19 00:27:09 +02:00
bf19882a23 is_dir check is removed 2018-02-18 16:22:45 +03:00
484d2a63ec is_dir check is removed 2018-02-18 14:48:06 +03:00
1b14628dbf Directory creation is moved to export() method 2018-02-18 12:57:09 +03:00
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
9a16f8fecc Fixes #8983: Only truncate the original log file for rotation 2017-11-30 23:23:21 +03:00
4b9e48b8dc improved docs: link term "path alias" to the guide 2017-06-02 10:45:20 +02:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
09b1fd47e0 Fixed yii\log\FileTarget does not apply fileMode for rotated via copy files 2016-08-30 13:41:54 +03:00
7c609ad8fb allow disabling log rotation
fixes #6896

close #6913
2015-01-22 16:57:23 +01:00
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
bd9cddb8d9 fixed rotateByCopy to avoid any rename()
fixes issue #3989
2014-06-27 12:54:20 +02:00
cc5c413711 better fix for #2988 2014-06-25 23:17:45 +02:00
18c3e8ef01 clear stat cache in logger to avoid cache of file state
fixes #2988
2014-06-25 23:14:33 +02:00
efbd23b52e refactored logger to support array values out of the box.
fixes #3245, #3244
2014-06-09 14:58:36 +02:00
b1cf051a73 Adding rotateByCopy to yii\log\FileTarget #3562 2014-05-26 10:25:15 +02:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
f36ec8c9ca doc fix 2014-01-24 16:25:41 +07:00
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00