Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | typofixes | Veres Lajos | 2014-08-17 | 1 | -1/+1 |
| | |||||
* | Merge branch 'pull-request/518' into PHP-5.4 | Stanislav Malyshev | 2014-04-13 | 2 | -8/+30 |
|\ | | | | | | | | | * pull-request/518: Fix #66021 (Blank line inside empty array/object) | ||||
| * | Fix #66021 (Blank line inside empty array/object) | Kevin Israel | 2013-11-02 | 2 | -8/+30 |
| | | | | | | | | | | | | | | | | Changed json_encode() so that when the JSON_PRETTY_PRINT option is specified, the pair of linefeeds immediately after an opening bracket and before the corresponding closing bracket is omitted when the array or object contains no elements or accessible properties (and hence would have a blank line between the brackets). | ||||
* | | Export JsonSerializable Interface (bug #65753) | Julien Pauli | 2014-02-17 | 2 | -2/+2 |
| | | |||||
* | | Bump year | Xinchen Hui | 2014-01-03 | 2 | -2/+2 |
| | | |||||
* | | Better test: Check combined leading/trailing | Andrea Faulds | 2013-10-15 | 1 | -0/+66 |
| | | |||||
* | | Fixed whitespace part of bug #64874 ("json_decode handles whitespace and ↵ | Andrea Faulds | 2013-09-17 | 2 | -8/+73 |
|/ | | | | case-sensitivity incorrectly") | ||||
* | Happy New Year | Xinchen Hui | 2013-01-01 | 2 | -2/+2 |
| | |||||
* | Alter php_json_decode_ex() to respect JSON_BIGINT_AS_STRING for bare numbers. | Adam Harvey | 2012-12-11 | 2 | -3/+60 |
| | | | | Fixes bug #63737 (json_decode does not properly decode with options parameter). | ||||
* | Related bug #63588 fix length computation + optimize for speed | Remi Collet | 2012-11-26 | 1 | -17/+22 |
| | | | | | | Following comment from Yoram "The patch looks fine, except of testing for true value of utf16 in each iteration." Also fix the length computation during check phase. | ||||
* | Fixed bug #63588 Duplicate implementation of php_next_utf8_char | Remi Collet | 2012-11-25 | 5 | -67/+31 |
| | | | | | | | | | Json use an utf8 parser from a third party library, switch to our implementation of php_next_utf8_char. This also helps on solving #63520. All the unit tests succeed. Our implementation also seems a little faster. json.dsp need to be regenerated. | ||||
* | Revert JSON merges to 5.4 | Nikita Popov | 2012-07-01 | 16 | -232/+47 |
| | | | | | | | | This reverts the following merge commits (-m 1): 405ebfcd182a39f0960ff7d7055d49053d3e0316 d372b33c9b941be9a795bf3705bd22dc5f6092c3 36fa17a5fae84ab332366a202f0a709279a2466a | ||||
* | fix bug #61359: json_encode() calls too many reallocs | Stanislav Malyshev | 2012-06-30 | 1 | -9/+12 |
| | |||||
* | Merge branch 'PHP-5.3' into PHP-5.4 | Nikita Popov | 2012-06-28 | 8 | -42/+51 |
|\ | | | | | | | | | * PHP-5.3: Add json_last_error_msg() function | ||||
| * | Add json_last_error_msg() function | Nikita Popov | 2012-06-28 | 8 | -42/+51 |
| | | | | | | | | | | This replaces json_last_error(true) and is consistent with other custom error handling functions. | ||||
* | | Merge branch 'PHP-5.3' into PHP-5.4 | Nikita Popov | 2012-06-27 | 11 | -58/+113 |
|\ \ | |/ | | | | | | | | | | | | | | | * PHP-5.3: Improve JSON error handling Conflicts: ext/json/tests/bug54058.phpt ext/json/tests/bug61537.phpt | ||||
| * | Improve JSON error handling | Nikita Popov | 2012-06-27 | 8 | -49/+92 |
| | | | | | | | | | | | | | | | | | | json_encode() no longer throws warnings. Instead only the error code for json_last_error() is set. As it is hard to debug the error from just an error code an optional $as_string parameter was added to json_last_error(), which returns an error message instead of an error code. | ||||
* | | Merge branch 'PHP-5.3' into PHP-5.4 | Nikita Popov | 2012-06-23 | 14 | -26/+147 |
|\ \ | |/ | | | | | | | | | | | | | | | * PHP-5.3: Improve json_encode error handling - BFN Conflicts: ext/json/json.c | ||||
| * | Improve json_encode error handling | Nikita Popov | 2012-06-23 | 9 | -13/+110 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | json_encode() now returns bool(false) for all possible errors, throws the respective warning and also sets the respective json_last_error() error code. Three new error codes have been added: * JSON_ERROR_RECURSION * JSON_ERROR_INF_OR_NAN * JSON_ERROR_UNSUPPORTED_TYPE To get a partial JSON output instead of bool(false) the option JSON_PARTIAL_OUTPUT_ON_ERROR can be specified. In this case the invalid segments will be replaced either by null (for recursion, unsupported type and invalid JSON) or 0 (for Inf and NaN). The warning for invalid UTF-8 stays intact and is thrown also with display_errors = On. If this behavior is undesired this can be remedied later. | ||||
| * | Fix bug #61537 (json_encode() incorrectly truncates/discards information) and | Adam Harvey | 2012-04-11 | 5 | -25/+45 |
| | | | | | | | | remove a test case that's now mooted by this fix. | ||||
* | | Revert "Update test to fix breakage caused by the previous commit." | Stanislav Malyshev | 2012-05-15 | 1 | -7/+3 |
| | | | | | | | | | | This reverts commit 05c8d4766c272e101b5279f0ec432e1b16e74637. Connected to revert 7bbd5521d28ee77c5a8df80174f52dad0112e872. | ||||
* | | - Fixed bug #61978 (Object recursion not detected for classes that implement ↵ | Felipe Pena | 2012-05-08 | 2 | -0/+60 |
| | | | | | | | | JsonSerializable) | ||||
* | | Revert "Fix bug #61537 (json_encode() incorrectly truncates/discards ↵ | Stanislav Malyshev | 2012-05-01 | 5 | -45/+25 |
| | | | | | | | | | | | | | | | | information) and" This reverts commit cb2a1c71c96d7c9b2ee03d77beae0c8e0d385f1b. The fix is not correct, not fixed after discussion on github. Please fix the issues and reapply the patch | ||||
* | | Update test to fix breakage caused by the previous commit. | Adam Harvey | 2012-04-11 | 1 | -3/+7 |
| | | |||||
* | | Fix bug #61537 (json_encode() incorrectly truncates/discards information) and | Adam Harvey | 2012-04-11 | 5 | -25/+45 |
| | | | | | | | | remove a test case that's now mooted by this fix. | ||||
* | | Merge branch 'PHP-5.3' into PHP-5.4 | David Soria Parra | 2012-03-20 | 1 | -1/+2 |
|\ \ | |/ | | | | | | | * PHP-5.3: Adding Braces in json.c to conform with coding standards | ||||
| * | Adding Braces in json.c to conform with coding standards | Matt Nowack | 2012-03-20 | 1 | -1/+2 |
| | | |||||
| * | - Year++ | Felipe Pena | 2012-01-01 | 2 | -2/+2 |
| | | |||||
| * | Fixed bug #55543 (json_encode() with JSON_NUMERIC_CHECK fails on objects ↵ | Ilia Alshanetsky | 2011-10-17 | 2 | -1/+14 |
| | | | | | | | | with numeric string properties) | ||||
| * | - Make usage of new PHP_FE_END macro | Felipe Pena | 2011-07-25 | 1 | -1/+1 |
| | | |||||
| * | Remove duplicate lines present in PHP_5_3's .phpt (dtajchreber) | Christopher Jones | 2011-06-17 | 1 | -25/+0 |
| | | |||||
| * | Fixed bug #54484 (Empty string in json_decode doesn't reset json_last_error()). | Ilia Alshanetsky | 2011-06-01 | 2 | -0/+52 |
| | | |||||
| * | Fix Bug #54058, invalid utf-8 doesn't set json_encode() in all cases | Scott MacVicar | 2011-02-21 | 2 | -1/+37 |
| | | |||||
| * | Fix Bug #53963, error code isn't always set in certain error cases. | Scott MacVicar | 2011-02-09 | 1 | -0/+2 |
| | | |||||
| * | - Year++ | Felipe Pena | 2011-01-01 | 2 | -2/+2 |
| | | |||||
| * | Fix English in the error message emitted when json_decode() is called with | Adam Harvey | 2010-09-14 | 1 | -1/+1 |
| | | | | | | | | | | depth <= 0. | ||||
| * | Fix bug #52262 - Invalid UTF-8 documents don't set an error code when they ↵ | Scott MacVicar | 2010-07-06 | 1 | -0/+1 |
| | | | | | | | | fail to decode. | ||||
| * | Added support for JSON_NUMERIC_CHECK option in json_encode() that converts | Ilia Alshanetsky | 2010-05-20 | 3 | -13/+39 |
| | | | | | | | | | | | | numeric strings to integers. | ||||
| * | - Fixed bug #51590 (JSON_ERROR_UTF8 is undefined) | Felipe Pena | 2010-04-18 | 1 | -0/+1 |
| | | |||||
| * | - Fixed tests | Felipe Pena | 2010-04-03 | 2 | -8/+2 |
| | | |||||
* | | - Year++ | Felipe Pena | 2012-01-01 | 2 | -2/+2 |
| | | |||||
* | | Fixed bug #55543 (json_encode() with JSON_NUMERIC_CHECK fails on objects ↵ | Ilia Alshanetsky | 2011-10-17 | 2 | -1/+14 |
| | | | | | | | | with numeric string properties) | ||||
* | | Add test for #53946 to 5.4 (missed it when committing revision 315707) | Gwynne Raskind | 2011-08-29 | 1 | -0/+16 |
| | | |||||
* | | Add unescaped Unicode encoding to json_encode(). Closes bug #53946. Patch by ↵ | Gwynne Raskind | 2011-08-29 | 4 | -17/+26 |
| | | | | | | | | Irker and Gwynne. | ||||
* | | - Added missing PHP_FE_END/ZEND_FE_END | Felipe Pena | 2011-08-06 | 1 | -1/+1 |
| | | |||||
* | | - Make usage of new PHP_FE_END macro | Felipe Pena | 2011-07-25 | 1 | -1/+1 |
| | | |||||
* | | Fixed bug #54484 (Empty string in json_decode doesn't reset json_last_error()). | Ilia Alshanetsky | 2011-06-01 | 2 | -0/+27 |
| | | |||||
* | | fix method name in JsonSerializable exception message | Peter Cowburn | 2011-04-30 | 1 | -1/+1 |
| | | |||||
* | | Fix Bug #54058, invalid utf-8 doesn't set json_encode() in all cases | Scott MacVicar | 2011-02-21 | 2 | -1/+37 |
| | | |||||
* | | Fix Bug #53963, error code isn't always set in certain error cases. | Scott MacVicar | 2011-02-09 | 1 | -0/+2 |
| | |