Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Happy New Year~ | Xinchen Hui | 2013-01-01 | 1 | -1/+1 |
| | |||||
* | Revert change 3f3ad30c50: There shouldn't be new features in 5.3, especially | johannes | 2012-07-05 | 1 | -7/+4 |
| | | | | not if they aren't in 5.4, too. | ||||
* | Revert JSON changes to PHP 5.3 | Nikita Popov | 2012-07-01 | 1 | -48/+7 |
| | | | | | | | | | | This reverts the following commits: 974324676b2436f159f42d9241c569f813471684 4662151ea7d7b6920d115cf2a2d6e9d4232727a3 84fe2cc890e49f40bac7c3ba74b3cfc6dc4cef2f This does not revert the JSON changes released in PHP 5.3.14. | ||||
* | Add json_last_error_msg() function | Nikita Popov | 2012-06-28 | 1 | -10/+19 |
| | | | | | This replaces json_last_error(true) and is consistent with other custom error handling functions. | ||||
* | Improve JSON error handling | Nikita Popov | 2012-06-27 | 1 | -8/+33 |
| | | | | | | | | | 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. | ||||
* | Improve json_encode error handling | Nikita Popov | 2012-06-23 | 1 | -4/+11 |
| | | | | | | | | | | | | | | | | | | | 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 | 1 | -4/+7 |
| | | | | remove a test case that's now mooted by this fix. | ||||
* | Adding Braces in json.c to conform with coding standards | Matt Nowack | 2012-03-20 | 1 | -1/+2 |
| | |||||
* | - Year++ | Felipe Pena | 2012-01-01 | 1 | -1/+1 |
| | |||||
* | Fixed bug #55543 (json_encode() with JSON_NUMERIC_CHECK fails on objects ↵ | Ilia Alshanetsky | 2011-10-17 | 1 | -1/+1 |
| | | | | with numeric string properties) | ||||
* | - 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 | 1 | -0/+2 |
| | |||||
* | Fix Bug #54058, invalid utf-8 doesn't set json_encode() in all cases | Scott MacVicar | 2011-02-21 | 1 | -1/+2 |
| | |||||
* | - Year++ | Felipe Pena | 2011-01-01 | 1 | -1/+1 |
| | |||||
* | 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 | 1 | -11/+27 |
| | | | | | | numeric strings to integers. | ||||
* | - Fixed bug #51590 (JSON_ERROR_UTF8 is undefined) | Felipe Pena | 2010-04-18 | 1 | -0/+1 |
| | |||||
* | sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php | Sebastian Bergmann | 2010-01-03 | 1 | -1/+1 |
| | |||||
* | MFH: Add error constant when json_encode detects an invalid UTF-8 sequence. | Scott MacVicar | 2009-07-27 | 1 | -0/+2 |
| | |||||
* | fix json shared build on Windows | Stanislav Malyshev | 2009-06-30 | 1 | -2/+2 |
| | |||||
* | - MFH: Fixed memleak when depth arg is less than zero | Felipe Pena | 2009-06-24 | 1 | -0/+1 |
| | |||||
* | MFH: no dots in errors | Jani Taskinen | 2009-05-31 | 1 | -3/+3 |
| | |||||
* | Expose encode/decode API. | Andrei Zmievski | 2009-05-31 | 1 | -43/+50 |
| | |||||
* | MFH: Fix arginfo | Kalle Sommer Nielsen | 2009-05-15 | 1 | -0/+1 |
| | |||||
* | MFH Allow a custom recursion depth to be specified for json_decode() | Scott MacVicar | 2009-05-14 | 1 | -4/+4 |
| | |||||
* | MFH Replace magic values with a define for json encoding, makes reading it a ↵ | Scott MacVicar | 2009-03-17 | 1 | -7/+10 |
| | | | | bit easier | ||||
* | MFH Add PHP_JSON_FORCE_OBJECT for forcing an object output of an array | Scott MacVicar | 2009-03-17 | 1 | -1/+3 |
| | |||||
* | MFH: Bump copyright year, 3 of 3. | Sebastian Bergmann | 2008-12-31 | 1 | -1/+1 |
| | |||||
* | MFH Make sure we clear out the error when the scalar version decoding works. | Scott MacVicar | 2008-12-24 | 1 | -0/+6 |
| | |||||
* | MFH Add json_last_error() for getting a bit of information about what failed ↵ | Scott MacVicar | 2008-12-19 | 1 | -9/+40 |
| | | | | | | | during a decode, also fixes a segfault when we have [1} [DOC] | ||||
* | Update the JSON parser with that on json.org, biggest change here is code ↵ | Scott MacVicar | 2008-12-17 | 1 | -16/+25 |
| | | | | | | | | | readability. Less magic numbers in the state table. Add missing reflection information to json_encode() Fixes bug #45791 with 0e0 not being supported as a value Error values are stored when encountered during parsing | ||||
* | MFH Fix bug #45989 - json_decode() doesn't return NULL on certain invalid ↵ | Scott MacVicar | 2008-12-12 | 1 | -7/+1 |
| | | | | strings | ||||
* | - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro | Felipe Pena | 2008-11-17 | 1 | -2/+0 |
| | |||||
* | - Revert ZEND_BEGIN_ARG_INFO change | Felipe Pena | 2008-11-02 | 1 | -0/+2 |
| | |||||
* | - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro | Felipe Pena | 2008-10-24 | 1 | -2/+0 |
| | |||||
* | - MFH: Fixed bug #46215 (json_encode mutates its parameter and has some ↵ | Felipe Pena | 2008-10-02 | 1 | -0/+3 |
| | | | | class-specific state) | ||||
* | ws + cs | Jani Taskinen | 2008-07-22 | 1 | -418/+392 |
| | |||||
* | - Added arginfo | Felipe Pena | 2008-06-27 | 1 | -2/+15 |
| | |||||
* | ZTS fix | Dmitry Stogov | 2008-01-30 | 1 | -4/+4 |
| | |||||
* | fix #43941: invalid utf-8 not accepted | Stanislav Malyshev | 2008-01-30 | 1 | -2/+8 |
| | |||||
* | MFH: Bump copyright year, 2 of 2. | Sebastian Bergmann | 2007-12-31 | 1 | -1/+1 |
| | |||||
* | MFH (json.c r-1.32) Add support for encoding options | Sara Golemon | 2007-12-17 | 1 | -15/+74 |
| | |||||
* | Fixed bug #42785 (json_encode() formats doubles according to locale rather | Ilia Alshanetsky | 2007-10-01 | 1 | -1/+1 |
| | | | | | then following standard syntax). | ||||
* | Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) | Dmitry Stogov | 2007-09-27 | 1 | -1/+1 |
| | |||||
* | MFH: Fixed bug#42090 (json_decode causes segmentation fault) | Hannes Magnusson | 2007-07-24 | 1 | -1/+1 |
| | |||||
* | fix ws/folding | Antony Dovgal | 2007-07-23 | 1 | -4/+10 |
| | |||||
* | Fixed bug #41673 (json_encode breaks large numbers in arrays). | Ilia Alshanetsky | 2007-06-13 | 1 | -11/+3 |
| | |||||
* | Fixed bug #41567 (json_encode() double conversion is inconsistent with PHP). | Ilia Alshanetsky | 2007-06-04 | 1 | -1/+1 |
| | |||||
* | MFH: protos (patch by jeffg at activestate dot com) | Hannes Magnusson | 2007-05-25 | 1 | -0/+6 |
| |