--TEST-- json_encode() & endless loop - 1 --FILE-- --EXPECTF-- array(1) { [0]=> *RECURSION* } bool(false) int(6) string(%d) "Recursion detected" string(6) "[null]" int(6) string(%d) "Recursion detected" Done