HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/opt/alt/php74/usr/share/pear/test/jsond/tests/json_last_error_msg_error.phpt
--TEST--
json_last_error_msg() failures
--SKIPIF--
<?php !extension_loaded('jsond') && die('skip json extension not available') ?>
--FILE--
<?php
require_once "bootstrap.inc";

var_dump($jsond_last_error_msg());
var_dump($jsond_last_error_msg(TRUE));
var_dump($jsond_last_error_msg('some', 4, 'args', 'here'));

?>
--EXPECTF--
string(8) "No error"

Warning: %s expects exactly 0 parameters, 1 given in %s on line %d
NULL

Warning: %s expects exactly 0 parameters, 4 given in %s on line %d
NULL