From c85f12e3aca8d1da64504018e421a766ab66e574 Mon Sep 17 00:00:00 2001 From: Julien Pauli Date: Wed, 4 Feb 2015 12:48:17 +0100 Subject: Revert "json_decode() should generate a syntax error when given ""." This reverts commit a7b3abe4e6f5e2fdfd8d55b676c9ca6b3f9c8cc8. --- ext/json/tests/bug54484.phpt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'ext/json/tests/bug54484.phpt') diff --git a/ext/json/tests/bug54484.phpt b/ext/json/tests/bug54484.phpt index e56d8bd86b..d698ab5416 100644 --- a/ext/json/tests/bug54484.phpt +++ b/ext/json/tests/bug54484.phpt @@ -15,16 +15,11 @@ json_decode("invalid json"); var_dump(json_last_error()); -json_decode("\001 invalid json"); -var_dump(json_last_error()); - - json_decode(""); var_dump(json_last_error()); ?> --EXPECT-- int(0) +int(0) int(4) -int(4) -int(3) -int(4) +int(0) -- cgit v1.2.1