Commit Graph

55 Commits

Author SHA1 Message Date
Ilia Alshanetsky
71bc2b7f8f MFB: Handle very small longs via double 2007-06-13 17:57:10 +00:00
Ilia Alshanetsky
b59b26c4bf MFB: Fixed bug #41673 (json_encode breaks large numbers in arrays). 2007-06-13 17:10:06 +00:00
Antony Dovgal
419334d9b5 fix tests 2007-06-08 09:03:23 +00:00
Antony Dovgal
41ec253ac8 oops, empty properties are not allowed 2007-06-08 08:57:21 +00:00
Antony Dovgal
445f777480 MFB: fix #41504 (json_decode() incorrectly decodes JSON arrays with empty string keys). 2007-06-08 08:51:46 +00:00
Ilia Alshanetsky
893c59ba9b MFB: Fixed bug #41567 (json_encode() double conversion is inconsistent with
PHP).
2007-06-04 23:52:34 +00:00
Antony Dovgal
a9230e2726 fix test 2007-05-29 12:01:14 +00:00
Hannes Magnusson
8d5f95bfac MFB: Fix test after stack limit bump 2007-05-25 12:31:35 +00:00
Rasmus Lerdorf
814847dba2 MFB 5_2 - increase json parser depth from 20 to 128 2007-05-24 22:39:06 +00:00
Antony Dovgal
b21fe28568 fix #41403 (json_decode cannot decode floats if localeconv decimal_point is not '.') 2007-05-16 12:53:36 +00:00
Antony Dovgal
419c5b3db1 fix tests
add test for yet not merged fix
2007-04-26 23:42:36 +00:00
Antony Dovgal
1607e9fa79 MFB fix for #41034
add missing tests
2007-04-23 10:48:13 +00:00
Antony Dovgal
9a5b6ffceb fix test 2007-04-20 10:15:12 +00:00
Ilia Alshanetsky
68a31e78d3 MFB: Fixed bug #41067 (json_encode() problem with UTF-16 input). 2007-04-19 22:49:11 +00:00
Andrei Zmievski
1714d379d9 MFB (handling of control characters) 2007-04-16 16:52:20 +00:00
Antony Dovgal
4676d78ab5 MFB: #40503 (json_encode() value corruption on 32bit systems with overflown values) 2007-02-19 19:44:44 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Ilia Alshanetsky
2dbfe66e4a MFB: safety checks 2006-12-26 17:40:20 +00:00
Nuno Lopes
3945428c9f MFB: little cleanup in json_determine_array_type() 2006-12-19 15:01:57 +00:00
Andrei Zmievski
c2d9e83820 Clarify why the result of json_encode() is a binary string. 2006-10-19 20:24:25 +00:00
Antony Dovgal
93cd342f48 fix tests 2006-10-19 20:17:17 +00:00
Antony Dovgal
8fba8ef219 fix folding tags, nuke json globals 2006-10-19 10:12:19 +00:00
Antony Dovgal
05da0efe36 fix coverity issue #262 (uninitialized variable) 2006-10-19 10:01:54 +00:00
Dmitry Stogov
a1130e84bf ZTS fix 2006-10-18 07:41:33 +00:00
Andrei Zmievski
d33a905a16 Unicode support in JSON functions. 2006-10-17 17:56:54 +00:00
Andrei Zmievski
867d4a97d1 Patch to support primitive types. (Ilia) 2006-10-16 17:04:51 +00:00
Dmitry Stogov
d7c13d414c Fixed memory leaks 2006-09-13 13:26:10 +00:00
Marcus Boerger
7bdb451318 - MFB Test name must not be more than a single line 2006-08-07 23:33:57 +00:00
Antony Dovgal
004e6c6cf6 add missing UEXPECTF section 2006-08-07 21:51:06 +00:00
Antony Dovgal
7d3057410c initialize variable 2006-07-25 09:06:47 +00:00
Rob Richards
62e8daf1d6 enable by default 2006-07-22 15:32:17 +00:00
Nuno Lopes
770b92198f MFB 2006-07-22 15:23:23 +00:00
Antony Dovgal
c06f0b0a87 rephrase 2006-07-20 10:47:26 +00:00
foobar
b24efadcef Simplify configure, no need to have dozen macros which have no use 2006-07-20 10:11:02 +00:00
foobar
df908e1f23 missing credits file 2006-07-20 10:07:17 +00:00
Antony Dovgal
7766768cfb use E_WARNING on recursion and add null to the result to keep it valid 2006-07-20 09:33:15 +00:00
Antony Dovgal
8635f4fd23 ZTS fix 2006-07-20 09:18:46 +00:00
Antony Dovgal
3f197f1c3c add recursion protection to json_encode() and new tests 2006-07-20 08:56:24 +00:00
Antony Dovgal
321184da5e fix segfault caused by empty keys is JSON data
add test
2006-07-20 08:23:45 +00:00
Antony Dovgal
7589a72629 json_escape_string() doesn't use tsrm_ls, so no need to pass it 2006-07-20 07:40:41 +00:00
Ilia Alshanetsky
369b7e44a0 MFB: Fixed compiler warnings and enable Json by default. 2006-07-19 16:17:56 +00:00
Omar Kilani
aa8ab527f2 Fix PECL bug #7147 - rework comma insertion whilst encoding.
Add tests to package.xml.
2006-03-18 04:15:16 +00:00
Omar Kilani
6d841fe6a0 Mark as stable. 2006-03-15 00:15:05 +00:00
Omar Kilani
2d294a8b39 - Fix issue with encoding arrays with integer keys.
- Modified pass001.1.phpt to test a mix of integers and strings as keys.
2006-03-04 15:31:27 +00:00
Omar Kilani
690859c1fd Fix encoding of empty strings.
Add empty string value test case.
2006-02-02 10:54:32 +00:00
Omar Kilani
7da29196d3 Add some documentation to the JSON extension. 2006-01-31 09:00:47 +00:00
Omar Kilani
73cead23a5 Add tests for JSON based on tests found on json.org:
http://www.crockford.com/JSON/JSON_checker/test/
2006-01-31 09:00:14 +00:00
Omar Kilani
94a140214c - Rewritten for better performance. 3-8x faster encodes, 2-4x faster decodes.
- No longer uses json-c, implements it's own JSON parser and encoder.
- JSON parser based on Douglas Crockford's JSON_checker.
2006-01-31 08:59:06 +00:00
Omar Kilani
933ce50838 Remove json_c. 2006-01-31 08:54:55 +00:00
Omar Kilani
428bce101a Change license from LGPL to PHP. 2006-01-21 01:14:14 +00:00