1--TEST--
2json_last_error() failures
3--FILE--
4<?php
5
6var_dump(json_last_error());
7
8try {
9 var_dump(json_last_error(true));
10} catch (TypeError $e) {
11 echo $e->getMessage(), "\n";
12}
13
14?>
15--EXPECT--
16int(0)
17json_last_error() expects exactly 0 arguments, 1 given
18