#
90d4ae4d |
| 09-Nov-2013 |
Adam Harvey |
Make all code paths in json_determine_array_type() return constants. This is a purely cosmetic change, but the current behaviour of returning PHP_JSON_OUTPUT_ARRAY and 1 looks weird. |
#
82a4f1a1 |
| 02-Nov-2013 |
Kevin Israel |
Fix #66021 (Blank line inside empty array/object) Changed json_encode() so that when the JSON_PRETTY_PRINT option is specified, the pair of linefeeds immediately after an opening bracket
Fix #66021 (Blank line inside empty array/object) 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).
show more ...
|
#
25244285 |
| 10-Sep-2013 |
Andrea Faulds |
Fixed whitespace part of bug #64874 ("json_decode handles whitespace and case-sensitivity incorrectly") |
Revision tags: php-5.5.4RC1, php-5.4.20RC1, php-5.5.3, php-5.4.19, php-5.5.2, php-5.4.18, php-5.5.2RC1, php-5.4.18RC2, php-5.5.1, php-5.4.18RC1, php-5.3.27 |
|
#
4749457a |
| 08-Jul-2013 |
Veres Lajos |
HASH_KEY_NON_EXISTANT fix |
Revision tags: php-5.4.17, php-5.5.0, php-5.3.27RC1, php-5.4.17RC1, php-5.5.0RC3, php-5.3.26, php-5.4.16, php-5.5.0RC2, php-5.3.26RC1, php-5.4.16RC1, php-5.5.0RC1, php-5.3.25, php-5.4.15, php-5.3.25RC1, php-5.5.0beta4, php-5.4.15RC1, php-5.4.14, php-5.3.24, php-5.5.0beta3, php-5.3.24RC1, php-5.4.14RC1, php-5.5.0beta2, php-5.5.0beta1, php-5.3.23, php-5.4.13, php-5.5.0alpha6, php-5.3.23RC1, php-5.4.13RC1, php-5.3.22, php-5.5.0alpha5, php-5.4.12, php-5.3.22RC2, php-5.4.12RC2, php-5.3.22RC1, php-5.4.12RC1, php-5.5.0alpha4, php-5.3.21, php-5.4.11, php-5.5.0alpha3, php-5.3.21RC1, php-5.4.11RC1 |
|
#
a666285b |
| 01-Jan-2013 |
Xinchen Hui |
Happy New Year |
#
0a7395e0 |
| 01-Jan-2013 |
Xinchen Hui |
Happy New Year |
Revision tags: php-5.3.20, php-5.4.10, php-5.5.0alpha2 |
|
#
8bb106d2 |
| 11-Dec-2012 |
Adam Harvey |
Merge branch 'PHP-5.4' into PHP-5.5 * PHP-5.4: Alter php_json_decode_ex() to respect JSON_BIGINT_AS_STRING for bare numbers.
|
#
2d1694d4 |
| 11-Dec-2012 |
Adam Harvey |
Alter php_json_decode_ex() to respect JSON_BIGINT_AS_STRING for bare numbers. Fixes bug #63737 (json_decode does not properly decode with options parameter). |
Revision tags: php-5.3.20RC1, php-5.4.10RC1 |
|
#
495ff096 |
| 26-Nov-2012 |
Remi Collet |
Merge branch 'PHP-5.4' into PHP-5.5 * PHP-5.4: Related bug #63588 fix length computation + optimize for speed
|
#
7751a688 |
| 26-Nov-2012 |
Remi Collet |
Related bug #63588 fix length computation + optimize for speed Following comment from Yoram "The patch looks fine, except of testing for true value of utf16 in each iteration." Also
Related bug #63588 fix length computation + optimize for speed 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.
show more ...
|
#
f4a86125 |
| 25-Nov-2012 |
Remi Collet |
Merge branch 'PHP-5.4' into PHP-5.5 * PHP-5.4: Fixed bug #63588 Duplicate implementation of php_next_utf8_char
|
#
289bb339 |
| 25-Nov-2012 |
Remi Collet |
Fixed bug #63588 Duplicate implementation of php_next_utf8_char Json use an utf8 parser from a third party library, switch to our implementation of php_next_utf8_char. This also help
Fixed bug #63588 Duplicate implementation of php_next_utf8_char 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.
show more ...
|
Revision tags: php-5.3.19, php-5.4.9, php-5.5.0alpha1, php-5.3.19RC1, php-5.4.9RC1, php-5.3.18, php-5.4.8, php-5.3.18RC1, php-5.4.8RC1, php-5.3.17, php-5.4.7, php-5.4.7RC1, php-5.3.16, php-5.4.6, php-5.4.6RC1 |
|
#
f8559194 |
| 29-Jul-2012 |
Xinchen Hui |
Fix test failed due to new feature introduced in 45d596ea |
#
45d596ea |
| 24-Jul-2012 |
Florian Anderiasch |
Add optional depth parameter to json_encode #62369 |
Revision tags: php-5.4.5, php-5.3.15, php-5.3.15RC1, php-5.4.5RC1 |
|
#
b7903f97 |
| 01-Jul-2012 |
Nikita Popov |
Revert JSON merges to 5.4 This reverts the following merge commits (-m 1): 405ebfcd182a39f0960ff7d7055d49053d3e0316 d372b33c9b941be9a795bf3705bd22dc5f6092c3 36fa17a5fae84ab3
Revert JSON merges to 5.4 This reverts the following merge commits (-m 1): 405ebfcd182a39f0960ff7d7055d49053d3e0316 d372b33c9b941be9a795bf3705bd22dc5f6092c3 36fa17a5fae84ab332366a202f0a709279a2466a
show more ...
|
#
b741d331 |
| 01-Jul-2012 |
Stanislav Malyshev |
fix bug #61359: json_encode() calls too many reallocs |
#
405ebfcd |
| 28-Jun-2012 |
Nikita Popov |
Merge branch 'PHP-5.3' into PHP-5.4 * PHP-5.3: Add json_last_error_msg() function
|
#
97432467 |
| 28-Jun-2012 |
Nikita Popov |
Add json_last_error_msg() function This replaces json_last_error(true) and is consistent with other custom error handling functions. |
#
d372b33c |
| 27-Jun-2012 |
Nikita Popov |
Merge branch 'PHP-5.3' into PHP-5.4 * PHP-5.3: Improve JSON error handling Conflicts: ext/json/tests/bug54058.phpt ext/json/tests/bug61537.phpt
|
#
4662151e |
| 27-Jun-2012 |
Nikita Popov |
Improve JSON error handling 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 erro
Improve JSON error handling 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.
show more ...
|
#
36fa17a5 |
| 23-Jun-2012 |
Nikita Popov |
Merge branch 'PHP-5.3' into PHP-5.4 * PHP-5.3: Improve json_encode error handling - BFN Conflicts: ext/json/json.c
|
#
84fe2cc8 |
| 23-Jun-2012 |
Nikita Popov |
Improve json_encode error handling json_encode() now returns bool(false) for all possible errors, throws the respective warning and also sets the respective json_last_error() error c
Improve json_encode error handling 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.
show more ...
|
Revision tags: php-5.3.14, php-5.4.4, php-5.3.14RC2, php-5.4.4RC2, php-5.3.14RC1, php-5.4.4RC1 |
|
#
92bc49b2 |
| 09-May-2012 |
Felipe Pena |
- Fixed bug #61978 (Object recursion not detected for classes that implement JsonSerializable) |
Revision tags: php-5.3.13, php-5.4.3, php-5.4.2, php-5.3.12 |
|
#
7bbd5521 |
| 02-May-2012 |
Stanislav Malyshev |
Revert "Fix bug #61537 (json_encode() incorrectly truncates/discards information) and" This reverts commit cb2a1c71c96d7c9b2ee03d77beae0c8e0d385f1b. The fix is not correct, not fixed aft
Revert "Fix bug #61537 (json_encode() incorrectly truncates/discards 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
show more ...
|
Revision tags: php-5.3.11, php-5.4.1, php-5.3.11RC2, php-5.4.1RC2 |
|
#
cb2a1c71 |
| 02-Apr-2012 |
Adam Harvey |
Fix bug #61537 (json_encode() incorrectly truncates/discards information) and remove a test case that's now mooted by this fix. |