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