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