Rasmus Lerdorf
e949665bc9
Fix broken json tests in all branches
2009-08-03 04:01:57 +00:00
Rasmus Lerdorf
4743436576
Fix 2 broken json tests.
...
json_decode() returns a binary string, not unicode for
efficiency, and if you are going to test invalid utf8
in a test, you have to stuff it into a binary string
or it will be valid unicode by definition.
2009-07-26 07:21:02 +00:00
andy wharmby
845595eb7c
New json extension tests. Tested on Windows, Linux and Linux 64 bit.
2009-06-14 12:08:33 +00:00
Scott MacVicar
4143771208
Missing skip in tests
2009-03-17 23:29:39 +00:00
Scott MacVicar
bc51a1e9f7
Add PHP_JSON_FORCE_OBJECT for forcing an object output of an array
2009-03-17 23:15:17 +00:00
Scott MacVicar
de4891ab2a
Fix bug #47644 - Valid integers are truncated with json_decode()
2009-03-17 02:00:08 +00:00
andy wharmby
bd1fbf5127
Fix tests. Add missing SKIPIF. Tested on Windows, Linux and Linux 64
2009-01-23 20:23:32 +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
f3013d0524
Test for bug #45791
2008-12-17 14:46:42 +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
Felipe Pena
12c2d80194
- Fixed tests
2008-11-19 16:59:17 +00:00
Felipe Pena
14f94a13e1
- New test
2008-10-02 03:31:27 +00:00
Rasmus Lerdorf
c04ca7502c
Fix test to test higher nesting level
2008-07-31 11:49:19 +00:00
Jani Taskinen
a348a5daa4
- Add missing tests (thanks for being so fucking lazy Ilia!)
2008-07-22 14:14:31 +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
Stanislav Malyshev
400c9ecf7b
fix #43941 : invalid utf-8 not accepted
2008-01-30 03:21:30 +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
Ilia Alshanetsky
07ef5c5526
MFB: Added test for bug #42785
2007-10-01 15:33:29 +00:00
Hannes Magnusson
374e0a5d02
Fixed bug#42090 (json_decode causes segmentation fault)
2007-07-24 22:54:26 +00:00
Dmitry Stogov
e4355a6377
Fixed test
2007-07-10 07:51:23 +00:00
foobar
5b3bb06fb8
- Added missing SKIPIF
2007-06-29 13:51:18 +00:00
Antony Dovgal
419334d9b5
fix tests
2007-06-08 09:03:23 +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
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
Antony Dovgal
4676d78ab5
MFB: #40503 (json_encode() value corruption on 32bit systems with overflown values)
2007-02-19 19:44:44 +00:00
Antony Dovgal
93cd342f48
fix tests
2006-10-19 20:17:17 +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
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
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
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
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