| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
* PHP-5.6:
typofixes
Conflicts:
ext/spl/php_spl.c
|
| |\ \
| | |/
| | |
| | |
| | | |
* PHP-5.5:
typofixes
|
| | |\
| | | |
| | | |
| | | |
| | | | |
* PHP-5.4:
typofixes
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
directly from SHM.
|
| | | | |
|
| | | | |
|
|\ \ \ \
| |/ / /
| | | |
| | | |
| | | | |
* PHP-5.6:
Fix #66021 (Blank line inside empty array/object)
|
| |\ \ \
| | |/ /
| | | |
| | | |
| | | | |
* PHP-5.5:
Fix #66021 (Blank line inside empty array/object)
|
| | |\ \
| | | |/
| | | |
| | | |
| | | | |
* PHP-5.4:
Fix #66021 (Blank line inside empty array/object)
|
| | | |\
| | | | |
| | | | |
| | | | |
| | | | | |
* pull-request/518:
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).
|
| | |\ \ \
| | | |/ /
| | | | |
| | | | |
| | | | | |
* PHP-5.4:
Export JsonSerializable Interface (bug #65753)
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| |/ / / / |
|
| | | | | |
|
|\ \ \ \ \
| |/ / / / |
|
| |/ / /
| | | |
| | | |
| | | | |
case-sensitivity incorrectly")
|
|\ \ \ \
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* PHP-5.6:
Update NEWS and remove the unnecessary UPGRADING note.
UPGRADING and NEWS
Better test: Check combined leading/trailing
Fixed whitespace part of bug #64874 ("json_decode handles whitespace and case-sensitivity incorrectly")
|
| |\ \ \
| | |/ /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* PHP-5.4:
Update NEWS and remove the unnecessary UPGRADING note.
UPGRADING and NEWS
Better test: Check combined leading/trailing
Fixed whitespace part of bug #64874 ("json_decode handles whitespace and case-sensitivity incorrectly")
|
| | |/
| | |
| | |
| | | |
case-sensitivity incorrectly")
|
| | | |
|
|/ /
| |
| |
| |
| | |
This is a purely cosmetic change, but the current behaviour of returning
PHP_JSON_OUTPUT_ARRAY and 1 looks weird.
|
| | |
|
| | |
|
|\ \
| |/
| |
| |
| | |
* PHP-5.4:
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).
|
|\ \
| |/
| |
| |
| | |
* PHP-5.4:
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.
|
|\ \
| |/
| |
| |
| | |
* PHP-5.4:
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.
|
| |
| |
| |
| |
| |
| |
| |
| | |
This reverts the following merge commits (-m 1):
405ebfcd182a39f0960ff7d7055d49053d3e0316
d372b33c9b941be9a795bf3705bd22dc5f6092c3
36fa17a5fae84ab332366a202f0a709279a2466a
|
| | |
|
|/ |
|
| |
|
|\
| |
| |
| |
| | |
* PHP-5.3:
Add json_last_error_msg() function
|
| |
| |
| |
| |
| | |
This replaces json_last_error(true) and is consistent with other custom
error handling functions.
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
* PHP-5.3:
Improve JSON error handling
Conflicts:
ext/json/tests/bug54058.phpt
ext/json/tests/bug61537.phpt
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
* PHP-5.3:
Improve json_encode error handling
- BFN
Conflicts:
ext/json/json.c
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
remove a test case that's now mooted by this fix.
|
| |
| |
| |
| | |
JsonSerializable)
|
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| | |
remove a test case that's now mooted by this fix.
|