Scott MacVicar
784b59d016
Fix bug #46944 - UTF-8 characters outside the BMP aren't encoded correctly.
2009-01-02 03:01:53 +00:00
Sebastian Bergmann
7f4dc8702a
Bump copyright year, 3 of 3.
2008-12-31 11:12:40 +00:00
Scott MacVicar
0d860e26ca
Make sure we clear out the error when the scalar version decoding works.
2008-12-24 18:09:00 +00:00
Scott MacVicar
b0b32deb12
Add json_last_error() for getting a bit of information about what failed during a decode, also fixes a segfault when we have [1}
...
[DOC]
2008-12-19 02:00:59 +00:00
Scott MacVicar
d0cf756f7f
Fix Windows build
2008-12-17 15:46:00 +00:00
Scott MacVicar
f3013d0524
Test for bug #45791
2008-12-17 14:46:42 +00:00
Scott MacVicar
cae85c867a
Update the JSON parser with that on json.org, biggest change here is code readability. Less magic numbers in the state table.
...
Add missing reflection information to json_encode()
Fixes bug #45791 with 0e0 not being supported as a value
Error values are stored when encountered during parsing
2008-12-17 14:39:56 +00:00
Scott MacVicar
8e1f9c8acb
Fix bug #45989 - json_decode() doesn't return NULL on certain invalid strings
2008-12-12 23:17:44 +00:00
Matt Wilmas
509b50ed70
Changed logic for LONG_MIN
2008-12-02 14:50:01 +00:00
Felipe Pena
12c2d80194
- Fixed tests
2008-11-19 16:59:17 +00:00
Felipe Pena
43791516db
- Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro (again!)
2008-11-17 11:26:25 +00:00
Felipe Pena
e006a89e71
- Revert ZEND_BEGIN_ARG_INFO change
2008-11-02 21:10:13 +00:00
Felipe Pena
7eb2715464
- Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-10-24 14:34:17 +00:00
Felipe Pena
14f94a13e1
- New test
2008-10-02 03:31:27 +00:00
Felipe Pena
37e56d8538
- Fixed bug #46215 (json_encode mutates its parameter and has some class-specific state)
2008-10-02 03:30:54 +00:00
Rasmus Lerdorf
c04ca7502c
Fix test to test higher nesting level
2008-07-31 11:49:19 +00:00
Rasmus Lerdorf
664bb141a1
We can afford a larger stack here and other json parsers out there
...
go deeper than 128.
2008-07-30 13:57:47 +00:00
Jani Taskinen
f7560881f6
MFB:-Â Fixed bug #38680 (Added missing handling of basic types in json_decode)
...
# This was claimed to be in HEAD but wasn't..some commit reverted it or
# someone didn't check for real..
2008-07-22 17:06:00 +00:00
Jani Taskinen
c11ebb4076
MFB: sync
2008-07-22 15:31:00 +00:00
Jani Taskinen
24bddd5d58
ws + cs + sync with PHP_5_3
2008-07-22 15:30:33 +00:00
Jani Taskinen
a348a5daa4
- Add missing tests (thanks for being so fucking lazy Ilia!)
2008-07-22 14:14:31 +00:00
Felipe Pena
61a01e1c20
- MFB: Added arginfo
2008-06-27 19:17:29 +00:00
Steph Fox
4be7f4aecd
- killed off UEXPECT
...
- com_dotnet gets a .cvsignore
- Ulf will take care of mysql extensions, rest complete
2008-05-27 18:16:04 +00:00
Felipe Pena
3ed829f10e
- Added some UEXPECTs
...
- Fixed some tests
2008-03-22 14:58:29 +00:00
Felipe Pena
49114611bb
FIxed tests (new error message - E_DEPRECATED)
2008-02-23 22:30:08 +00:00
Antony Dovgal
c9c775eb07
cosmetic fix
2008-02-15 09:20:19 +00:00
Dmitry Stogov
5059b53579
ZTS fix
2008-01-30 08:10:28 +00:00
Stanislav Malyshev
400c9ecf7b
fix #43941 : invalid utf-8 not accepted
2008-01-30 03:21:30 +00:00
Nuno Lopes
1dc0e94e0f
MFB: remove unused PHP_EXTNAME_API macros.
...
#in preparation for the gcc 4 visibility patch
2008-01-03 16:18:29 +00:00
Sebastian Bergmann
9b620d50b4
Bump copyright year, 2 of 2.
2007-12-31 07:12:20 +00:00
Dmitry Stogov
9f4a22f1a8
Fixed test related to bug #38469
2007-12-28 13:23:13 +00:00
Sara Golemon
18e9c88c10
Add support for encoding options
2007-12-17 07:48:21 +00:00
Yiduo (David) Wang
95da0dc570
Added macros for managing zval refcounts and is_ref statuses
2007-10-07 05:15:07 +00:00
Ilia Alshanetsky
07ef5c5526
MFB: Added test for bug #42785
2007-10-01 15:33:29 +00:00
Ilia Alshanetsky
6c4e9b52b9
MFB: Fixed bug #42785 (json_encode() formats doubles according to locale
...
rather then following standard syntax).
2007-10-01 15:25:01 +00:00
Dmitry Stogov
8146078f7b
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
2007-09-27 18:28:44 +00:00
Jan Lehnardt
314f80f647
spaces -> tabs
2007-09-01 17:17:05 +00:00
Hannes Magnusson
374e0a5d02
Fixed bug#42090 (json_decode causes segmentation fault)
2007-07-24 22:54:26 +00:00
Antony Dovgal
a819499088
fix WS, CS and other S
2007-07-12 09:55:41 +00:00
Dmitry Stogov
e4355a6377
Fixed test
2007-07-10 07:51:23 +00:00
foobar
f0f44a3652
- Fix some configure --help texts
2007-07-03 17:24:39 +00:00
foobar
5b3bb06fb8
- Added missing SKIPIF
2007-06-29 13:51:18 +00:00
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