summaryrefslogtreecommitdiff
path: root/ext/json
Commit message (Collapse)AuthorAgeFilesLines
* Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-307-1033/+1152
| | | | semantick changes).
* Fix incompatible JSON errorsJakub Zelenka2015-06-283-486/+662
| | | | | | | This fixes differences in error codes with PHP 5 and 7. The malformed UTF-8 and control character error codes are now returned even in non-string context which makes it the same as it was in PHP 5 json ext.
* Fix bug #62010 (json_decode produces invalid byte-sequences)Jakub Zelenka2015-06-284-209/+250
|
* Bump re2c version for json scannerJakub Zelenka2015-06-283-3/+3
|
* Fix bug #68546 (json_decode cannot access property started with \0)Jakub Zelenka2015-06-215-11/+60
|
* Improve json parser codeJakub Zelenka2015-06-072-38/+147
|
* Tidy up and regenerate json parser with latest bison versionJakub Zelenka2015-05-103-767/+717
|
* Optimized json_parserXinchen Hui2015-05-063-749/+799
| | | | | | 1. use zend_string in key 2. use faster APIs 3. use ZVAL_COPY_VALUE instead of assignment (save u2 copy)
* Use Z_ARRVAL_P since we already know it's an arrayXinchen Hui2015-05-061-3/+3
|
* fix datatype mismatchesAnatol Belski2015-03-253-3/+3
|
* s/PHP Version 5/PHP Version 7/gLior Kaplan2015-03-137-7/+7
| | | | Follow up for d0cb7153
* Improved php_json_escape_string()Dmitry Stogov2015-03-111-98/+103
|
* ZTS cleanupReeze Xia2015-03-082-2/+2
|
* Added test for bug 69187Hugo Fonseca2015-03-071-0/+33
|
* Merge branch 'PHP-5.6'Jakub Zelenka2015-02-222-17/+38
|\ | | | | | | The fix for master is a bit different (it's fixed in encoder)
| * Merge branch 'PHP-5.5' into PHP-5.6Jakub Zelenka2015-02-222-17/+27
| |\ | | | | | | | | | | | | Conflicts: ext/json/json.c
| | * Fix bug #64695 (JSON_NUMERIC_CHECK has issues with strings that are numbers ↵Jakub Zelenka2015-02-222-11/+21
| | | | | | | | | | | | plus the letter e)
| * | Merge branch 'PHP-5.5' into PHP-5.6Julien Pauli2015-02-043-19/+2
| |\ \ | | |/ | | | | | | | | | | | | * PHP-5.5: Revert "json_decode() should generate a syntax error when given ""." Update NEWS
| | * Revert "json_decode() should generate a syntax error when given ""."Julien Pauli2015-02-043-19/+2
| | | | | | | | | | | | This reverts commit a7b3abe4e6f5e2fdfd8d55b676c9ca6b3f9c8cc8.
* | | Set PHP_JSON_VERSION to 1.4.0Jakub Zelenka2015-02-171-1/+1
| | |
* | | Delete json outdated package.xmlJakub Zelenka2015-02-161-152/+0
| | | | | | | | | | | | | | | | | | | | | The package.xml has not been update for more then 8 years and there is no reason to keep it. It would require quite a bit of digging in git history to update it which is not worth it.
* | | made ZEND_TSRMLS_CACHE_* macros look like function callsAnatol Belski2015-02-161-2/+2
| | | | | | | | | | | | which also comply with the current semantics for such macros
* | | Update JSON ReadmeJakub Zelenka2015-02-151-70/+10
| | |
* | | Remove unused destructor in json parserJakub Zelenka2015-02-152-5/+4
| | |
* | | Add bison 3.0.4 genereted files for json parserJakub Zelenka2015-02-152-0/+1955
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The definitions file (json_parser.tab.h) contains file system dependent name for C preprocessor guard: YY_PHP_JSON_YY_HOME_JAKUB_PROG_PHP_MASTER_EXT_JSON_JSON_PARSER_TAB_H_INCLUDED This is because the srcdir is used for default definitions name. It's a correct default (--definition=$(srcdir)/json_parser.tab.h) because the build would fail otherwise. Unfortunately Bison does not have a special option for defining cpp guard name. The only way would be using skeleton file but that's not possible with the current configuration as it requires using a specific bison version (disallowing range of supported versions).
* | | Regenerate json scanner with re2c 0.13.7.5Jakub Zelenka2015-02-152-2/+2
| | |
* | | better alignment + support size_tAnatol Belski2015-02-104-465/+464
| | |
* | | use portable strtolAnatol Belski2015-02-102-2/+2
| | |
* | | fix json globalsMichael Wallner2015-02-092-2/+1
| | |
* | | regenerated scannerAnatol Belski2015-02-092-459/+460
| | |
* | | fix datatype mismatchesAnatol Belski2015-02-093-7/+7
| | |
* | | fix inconsistend dll linkage warnAnatol Belski2015-02-091-0/+5
| | |
* | | size_t vs intAnatol Belski2015-02-091-1/+1
| | |
* | | use size_t for str lengthAnatol Belski2015-02-092-2/+2
| | |
* | | generate missing json files from config.w32Anatol Belski2015-02-091-0/+11
| | |
* | | Merge branch 'master' into jsondJakub Zelenka2015-02-081-1/+1
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: ext/json/json.c
| * | | Use object pointers instead of handlesDmitry Stogov2015-02-041-1/+1
| | | |
* | | | Fix invalid test for bug 54484Jakub Zelenka2015-02-021-1/+1
| | | |
* | | | Add re2c sourcesJakub Zelenka2015-02-022-0/+1162
| | | |
* | | | Merge branch 'master' into jsondJakub Zelenka2015-02-023-2/+19
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-5.6'Adam Harvey2015-02-023-2/+19
| |\ \ \ | | |/ /
| | * | Merge branch 'PHP-5.5' into PHP-5.6Adam Harvey2015-02-023-2/+19
| | |\ \ | | | |/
| | | * json_decode() should generate a syntax error when given "".Adam Harvey2015-02-023-2/+19
| | | | | | | | | | | | | | | | | | | | Fixes bug #68938 (json_decode() decodes empty string without error). Patch by jeremy at bat-country dot us.
| | | * Bump yearXinchen Hui2015-01-152-2/+2
| | | |
* | | | Give me creditJakub Zelenka2015-02-022-0/+2
| | | |
* | | | Merge branch 'master' into jsondJakub Zelenka2015-01-259-8/+33
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | Conflicts: ext/json/JSON_parser.c ext/json/json.c
| * | | Merge branch 'PHP-5.6'Stanislav Malyshev2015-01-193-8/+90
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | * PHP-5.6: Fixed bug #50224 where float without decimals were converted to integer Updated NEWS for #68371
| | * | Fixed bug #50224 where float without decimals were converted to integerJuan Basso2015-01-193-8/+90
| | | |
| | * | bump yearXinchen Hui2015-01-152-2/+2
| | | |
| * | | bump yearXinchen Hui2015-01-152-2/+2
| | | |