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

24 Commits

Author SHA1 Message Date
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
Mike Sherov
f5fe05c27f Adds exception codes to the exception data in NormalizeFormatter 2014-10-23 15:33:29 -04:00
Jordi Boggiano
aa518ad791 Add stack traces to normalized exceptions, closes #192 2013-05-21 21:05:40 +02:00
Jordi Boggiano
63e3bfdf7e Resolve json encoding errors issue globally, refs #137 2013-01-06 20:14:14 +01:00
Jordi Boggiano
da33c84d07 CS fixes 2012-06-14 15:47:01 +02:00
Jordi Boggiano
0bd4d93006 Split off line formatter in normalizer + line formatters 2012-04-22 12:36:23 +02:00