Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | php_json_escape_string() optimization | Dmitry Stogov | 2018-06-13 | 1 | -35/+60 |
| | |||||
* | Removed useless zval_ptr_dtor() | Dmitry Stogov | 2018-05-29 | 1 | -1/+1 |
| | |||||
* | Bit test optimization | Dmitry Stogov | 2018-05-08 | 1 | -1/+1 |
| | |||||
* | Bit check micro-optimization | Dmitry Stogov | 2018-04-28 | 1 | -1/+1 |
| | |||||
* | year++ | Xinchen Hui | 2018-01-02 | 1 | -1/+1 |
| | |||||
* | Merge branch 'PHP-7.2' | Jakub Zelenka | 2017-10-15 | 1 | -2/+7 |
|\ | |||||
| * | Fix bug #68567 (JSON_PARTIAL_OUTPUT_ON_ERROR can result in JSON with null key) | Jakub Zelenka | 2017-10-15 | 1 | -2/+7 |
| | | |||||
* | | Refactored recursion pretection | Dmitry Stogov | 2017-10-06 | 1 | -16/+16 |
|/ | |||||
* | [ci skip] Remove CSV leftovers from json code - $Id$ | Jakub Zelenka | 2017-07-16 | 1 | -2/+0 |
| | |||||
* | Add JSON_INVALID_UTF8_SUBSTITUTE and JSON_INVALID_UTF8_IGNORE | Jakub Zelenka | 2017-07-16 | 1 | -8/+22 |
| | | | | | It implements request #65082 and adds options for replacing resp. ignoring invalid UTF-8 sequences for json_encode and json_decode. | ||||
* | Optimization for fast path. | Dmitry Stogov | 2017-06-19 | 1 | -80/+83 |
| | |||||
* | Fixed performance degradaton introduced in f6ac96b | Dmitry Stogov | 2017-06-13 | 1 | -17/+23 |
| | |||||
* | Improve and simplify UTF-8 validation in JSON | Jakub Zelenka | 2017-06-11 | 1 | -50/+16 |
| | |||||
* | Improved UTF-8 validation in JSON | Dmitry Stogov | 2017-05-25 | 1 | -27/+10 |
| | |||||
* | Update copyright headers to 2017 | Sammy Kaye Powers | 2017-01-02 | 1 | -1/+1 |
| | |||||
* | json_encode(): Detect recursion earlier | Nikita Popov | 2016-11-19 | 1 | -20/+15 |
| | | | | | | | json_encode() used a peculiar way of apply-count management, whereby the apply-count was not incremented for the outermost object/array, so that recursion was only detected after two levels. | ||||
* | Introduce json encoder to fix globals related issues | Jakub Zelenka | 2016-10-30 | 1 | -32/+37 |
| | | | | | | It fixes bugs #66025 and #73254 by replacing globals with a passed structure holding depth and error code. In addition it fixes #72069 in a more generic way. | ||||
* | Introduced HT_IS_PACKED() and HT_IS_WITHOUT_HOLES() macros. (Benjamin Coutu) | Dmitry Stogov | 2016-10-19 | 1 | -0/+4 |
| | |||||
* | Merge branch 'PHP-7.0' into PHP-7.1 | Julien Pauli | 2016-09-19 | 1 | -1/+3 |
|\ | | | | | | | | | | | | | | | * PHP-7.0: Do not wrap user exception in case of custom JSON serialization Conflicts: ext/json/json_encoder.c | ||||
| * | Merge branch 'PHP-5.6' into PHP-7.0 | Julien Pauli | 2016-09-19 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | * PHP-5.6: Do not wrap user exception in case of custom JSON serialization Conflicts: ext/json/json.c | ||||
* | | Fix recursion and protection in the failed JSON encoding | Jakub Zelenka | 2016-08-29 | 1 | -11/+20 |
| | | |||||
* | | Add initial failure checking for json_encode | Jakub Zelenka | 2016-08-29 | 1 | -38/+54 |
| | | |||||
* | | Use one place to define max length of double | Jakub Zelenka | 2016-06-26 | 1 | -10/+2 |
| | | | | | | | | Introduce new constant PHP_DOUBLE_MAX_LENGTH for that purpose | ||||
* | | Replace json.precision with serialize_precision | Jakub Zelenka | 2016-06-26 | 1 | -1/+1 |
| | | |||||
* | | Add cast | Yasuo Ohgaki | 2016-06-26 | 1 | -1/+1 |
| | | |||||
* | | Simply use ndigit for flag for zend_dtoa mode | Yasuo Ohgaki | 2016-06-26 | 1 | -5/+2 |
| | | |||||
* | | Add JSON_G(precision) | Yasuo Ohgaki | 2016-06-26 | 1 | -2/+2 |
| | | |||||
* | | Initial patch for 0 mode float conversion. The magic number is better to be ↵ | Yasuo Ohgaki | 2016-06-26 | 1 | -1/+5 |
| | | | | | | | | improved. Any suggestion where to define it? | ||||
* | | Use empty keys instead of _empty_ in json decoding | Jakub Zelenka | 2016-06-20 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'PHP-7.0' | Xinchen Hui | 2016-05-06 | 1 | -45/+38 |
|\ \ | |/ | | | | | | | * PHP-7.0: Revert "Fixed bug #72170 (JsonSerializable may inc apply count without dec it)" | ||||
| * | Revert "Fixed bug #72170 (JsonSerializable may inc apply count without dec it)" | Xinchen Hui | 2016-05-06 | 1 | -45/+38 |
| | | | | | | | | This reverts commit 459a7cc209da130256d66c1f896199540f4dadbc. | ||||
* | | Merge branch 'PHP-7.0' | Xinchen Hui | 2016-05-06 | 1 | -38/+45 |
|\ \ | |/ | | | | | | | * PHP-7.0: Fixed bug #72170 (JsonSerializable may inc apply count without dec it) | ||||
| * | Fixed bug #72170 (JsonSerializable may inc apply count without dec it) | Xinchen Hui | 2016-05-06 | 1 | -38/+45 |
| | | | | | | | | I don't want use zend_try here, but seems I have no choice :< | ||||
* | | Merge branch 'PHP-7.0' | Xinchen Hui | 2016-04-22 | 1 | -0/+4 |
|\ \ | |/ | |||||
| * | Fixed bug #72069 (Behavior \JsonSerializable different from json_encode) | Xinchen Hui | 2016-04-22 | 1 | -0/+4 |
| | | |||||
* | | json_encode: Escape U+2028 and U+2029 more often. | Eddie Kohler | 2016-01-22 | 1 | -1/+10 |
|/ | | | | | | | | | These characters are illegal in Javascript, so leaving them unescaped is risky. The default encoder ($flags = 0) is fine, but the encoder with JSON_UNESCAPED_UNICODE flag is not. In case anyone wants the ability to leave these characters unescaped, provide JSON_UNESCAPED_LINE_TERMINATORS. | ||||
* | Happy new year (Update copyright to 2016) | Lior Kaplan | 2016-01-01 | 1 | -1/+1 |
| | |||||
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵ | Dmitry Stogov | 2015-06-30 | 1 | -5/+5 |
| | | | | semantick changes). | ||||
* | Use Z_ARRVAL_P since we already know it's an array | Xinchen Hui | 2015-05-06 | 1 | -3/+3 |
| | |||||
* | fix datatype mismatches | Anatol Belski | 2015-03-25 | 1 | -1/+1 |
| | |||||
* | Improved php_json_escape_string() | Dmitry Stogov | 2015-03-11 | 1 | -98/+103 |
| | |||||
* | Merge branch 'PHP-5.6' | Jakub Zelenka | 2015-02-22 | 1 | -17/+24 |
| | | | | The fix for master is a bit different (it's fixed in encoder) | ||||
* | fix json globals | Michael Wallner | 2015-02-09 | 1 | -2/+0 |
| | |||||
* | size_t vs int | Anatol Belski | 2015-02-09 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' into jsond | Jakub Zelenka | 2015-02-08 | 1 | -1/+1 |
| | | | | | Conflicts: ext/json/json.c | ||||
* | Give me credit | Jakub Zelenka | 2015-02-02 | 1 | -0/+1 |
| | |||||
* | Merge branch 'master' into jsond | Jakub Zelenka | 2015-01-25 | 1 | -1/+1 |
| | | | | | | Conflicts: ext/json/JSON_parser.c ext/json/json.c | ||||
* | Increase PHP_JSON_DOUBLE_MAX_LENGTH for fractional part | Jakub Zelenka | 2015-01-18 | 1 | -2/+2 |
| | | | | | | This is probably not necessary as such number is not realistic. It's just to be consistent with jsond extension. | ||||
* | Porting implementation of RFC json_preserve_fractional_part | Juan Basso | 2015-01-12 | 1 | -3/+8 |
| | |||||
* | Refactore json double encoding to use php_gcvt | Jakub Zelenka | 2015-01-11 | 1 | -23/+25 |
| |