1--TEST--
2json_last_error() failures
3--SKIPIF--
4<?php if (!extension_loaded("json")) print "skip"; ?>
5--FILE--
6<?php
7
8var_dump(json_last_error());
9var_dump(json_last_error(true));
10var_dump(json_last_error('some', 4, 'args', 'here'));
11
12?>
13--EXPECTF--
14int(0)
15
16Warning: json_last_error() expects exactly 0 parameters, 1 given in %s on line %d
17NULL
18
19Warning: json_last_error() expects exactly 0 parameters, 4 given in %s on line %d
20NULL
21