Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'PHP-7.3' into PHP-7.4 | Nikita Popov | 2019-04-23 | 1 | -2/+10 |
|\ | |||||
| * | Merge branch 'PHP-7.2' into PHP-7.3 | Nikita Popov | 2019-04-23 | 1 | -2/+10 |
| |\ | |||||
| | * | Fixed bug #77843 | Nikita Popov | 2019-04-23 | 1 | -2/+10 |
| | | | |||||
| | * | year++ | Xinchen Hui | 2018-01-02 | 1 | -1/+1 |
| | | | |||||
* | | | Optimization for ASCII data | Dmitry Stogov | 2019-03-18 | 1 | -73/+68 |
| | | | |||||
* | | | Remove function_table var from the caller | c9s | 2019-03-11 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | function_table var is not used in call_user_function macro anymore hence replace the usage with NULL | ||||
* | | | Remove local variables | Peter Kokot | 2019-02-03 | 1 | -9/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file. | ||||
* | | | Remove yearly range from copyright notice | Zeev Suraski | 2019-01-30 | 1 | -1/+1 |
| | | | |||||
* | | | Introduce get_properties_for() handler | Nikita Popov | 2018-10-10 | 1 | -2/+7 |
|/ / | | | | | | | | | This handler allows getting the object properties for a particular purpose, such as array casting, serialization, etc. | ||||
* | | 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 |
| |