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