1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-19 15:49:19 +02:00
Commit Graph

55 Commits

Author SHA1 Message Date
Jordi Boggiano
acf8e9e9a3 Merge branch '1.x' 2019-08-30 10:39:21 +02:00
Jordi Boggiano
2efcbcd181 Remove closure stack frames entirely from log 2019-08-30 10:24:17 +02:00
Jordi Boggiano
6688b45ebe Normalize the way backtraces are normalized and remove args for special cases, fixes #1346 2019-08-16 13:09:47 +02:00
Jordi Boggiano
b78de556de Merge pull request #1359 from MarioBlazek/feature_upgrade_phpunit_to_v8
Upgrade PHPUnit to v8
2019-08-15 21:32:19 +02:00
Mario Blažek
d317cb97d3 Move expectException before the line where exception is thrown 2019-08-13 15:34:48 +02:00
Mario Blažek
37900f9268 Upgrade PHPUnit to v8 2019-08-12 15:20:00 +02:00
Thomas Perez
4e095f38f4 Fix error_handler return type declaration 2019-07-31 22:19:02 +02:00
Mponos George
daed05c3e5 Enable JSON encode pretty print (#1236) 2018-12-04 10:30:41 +01:00
Jordi Boggiano
873ac681a6 Merge branch '1.x' 2018-06-18 17:27:30 +02:00
Jordi Boggiano
3e92b08956 Avoid information leaks through call_user_func arguments, fixes #1138 2018-06-18 17:21:54 +02:00
Andrew Berry
0d993d84d1 Normalization of arrays containing self references (#1050)
Backport normalization fix from master to 1.x
2018-06-17 17:27:33 +02:00
Jordi Boggiano
800fe2cc1a Migrate maxNormalizeDepth/maxNormalizeItemCount props and setters to NormalizerFormatter 2018-06-08 23:09:04 +02:00
Jordi Boggiano
518288c5c5 Merge branch '1.x' 2018-06-08 22:32:06 +02:00
Minh-Quan TRAN
ada5d30511 If context has exactly 1000 items, do not truncate 2018-06-08 22:18:08 +02:00
DQNEO
39f464bd58 make compatible to phpunit 6 2018-04-02 00:54:21 +09:00
Jordi Boggiano
ca4ffa68f6 Use namespaced phpunit classes, fixes #983 2017-06-19 00:48:54 +02:00
Chris Forrence
763c3afb32 Split expectException calls with two parameters into the proper two calls 2017-03-21 10:29:05 -04:00
Chris Forrence
85250d3c72 Replace deprecated setExpectedException methods with expectException 2017-03-21 10:14:16 -04:00
Jordi Boggiano
0d01b2c8c7 Merge branch '1.x' 2016-10-03 20:31:55 +02:00
Jordi Boggiano
214b8ef34b Add total amount of items when aborting traversable normalization 2016-10-03 20:31:30 +02:00
Jordi Boggiano
96f4fd718f CS fixes 2016-09-25 17:46:38 +02:00
Jordi Boggiano
6b0d0c4a19 Merge branch '1.x' 2016-07-29 04:53:49 +02:00
Jordi Boggiano
ced9284123 Fix tests 2016-07-29 04:51:33 +02:00
Francis Besset
8b1f522206 Added informations to normalize a SoapFault 2016-07-20 15:18:11 +02:00
Jordi Boggiano
f4567f1a5f Merge pull request #808 from naderman/fix/normalizer-recusion
Normalization of arrays containing self references
2016-07-02 15:34:40 +02:00
Nils Adermann
c582a6e791 Add a test for references normalization
This is an issue in particular when $GLOBALS gets stuck into $context
2016-06-22 14:28:38 +02:00
Jordi Boggiano
119807c80e Fix tests 2016-05-27 13:56:49 +01:00
Jordi Boggiano
21dde4dedb Move to strict mode and fix tests 2016-05-27 13:44:00 +01:00
Jordi Boggiano
f200e79879 CS fixes 2016-05-26 20:54:06 +01:00
Jordi Boggiano
2ff7afda31 Change the way objects are normalized to avoid multi-levels of json encoding, fixes #560 2016-05-26 19:21:47 +01:00
Jordi Boggiano
e27225dc40 Switch to DateTimeImmutable everywhere 2016-05-20 20:55:31 +01:00
Jeroen Thora
8ceda1b62e Removed unnecessary php version checks after php dependency bump to 7.0 2015-12-20 15:53:48 +01:00
Jordi Boggiano
0178fd4f09 CS fixes, refs #683 2015-11-18 17:53:15 +00:00
Jordi Boggiano
9532e979b6 Merge remote-tracking branch 'bd808/feature/clean-json' 2015-11-18 17:50:41 +00:00
Jordi Boggiano
c889fb2648 CS fixes & upgrading cs fixer config 2015-11-18 17:09:46 +00:00
Bryan Davis
6f9e221bd6 Attempt to recover from json encoding errors
Detect and attempt to recover from json_encode errors triggered by
strings containing invalid UTF-8 sequences. Recovery will only be
attempted when encoding strings or arrays. If recovery fails then
a RuntimeException will be thrown.

The recovery process will convert invalid UTF-8 codepoints as though the
input string was encoded using the ISO-8859-15 character encoding. This
conversion may result in incorrect string output if the original
encoding was not ISO-8859-15, but it will be a valid UTF-8 string.

Closes #545
2015-11-12 10:59:27 -07:00
Anton Sergeyev
f19d9ce9a1 #673 Fix fatal error while normalizing with __toString method which may throw an exception 2015-10-25 22:44:00 +06:00
Henrique Moody
50fb249739 Better normalization for resources 2015-08-20 15:01:24 -03:00
Jordi Boggiano
bfe5081735 Fix idiotic sunday 2015-07-12 14:05:44 +01:00
Jordi Boggiano
558678b420 Adjust check for php5.3/5.4 2015-07-12 14:01:43 +01:00
Jordi Boggiano
0c8a92af47 Throw exception when json encoding fails and errors are not ignored, fixes #545 2015-07-12 13:44:48 +01:00
Jordi Boggiano
131b27d113 Update test for 5.4/5.3 2015-06-01 22:33:28 +01:00
Jordi Boggiano
1a1f506f0e Fix up #546 to json serialize correctly 2015-06-01 21:42:42 +01:00
Dmitrii Raev
b1f2e2f5ec Change Test.. но __toString method called.. 2015-04-23 23:54:00 +03:00
Jordi Boggiano
d434bb4794 Add INF/NaN normalization, fixes #523 2015-03-05 00:57:49 +00:00
Jordi Boggiano
d7b0a0a20b Fix CS 2014-12-29 20:46:15 +00:00
Jordi Boggiano
10a3bfa930 Merge pull request #440 from mikesherov/exceptionCodes
Adds exception codes to the exception data in NormalizeFormatter
2014-12-28 16:40:10 +00:00
Thomas Ploch
50b6bf45d1 Use different testing pattern for PHP 5.4 and PHP 5.5 2014-12-16 13:46:06 +01:00
Thomas Ploch
e66ba56cc0 Fixed array() usage and added HHVM_VERSION check 2014-12-16 13:35:22 +01:00
Thomas Ploch
dca8f5841f Normalize frames for trace items since they can contain invalid data.
Refs https://github.com/Seldaek/monolog/pull/474/files

The fix in the previous PR did not take into account that there might be object wrapped resources that would break json_encode, so the best solution would be normalizing those frames again.

@Seldaek Sorry for the inconvenience, but our graylog is still ramming up with those json_encode error messages.
2014-12-16 13:26:24 +01:00