summaryrefslogtreecommitdiff
path: root/ext/json/tests/json_exceptions_error_clearing.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/tests/json_exceptions_error_clearing.phpt')
-rw-r--r--ext/json/tests/json_exceptions_error_clearing.phpt12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/json/tests/json_exceptions_error_clearing.phpt b/ext/json/tests/json_exceptions_error_clearing.phpt
index 6d01dd7c33..70dfca2171 100644
--- a/ext/json/tests/json_exceptions_error_clearing.phpt
+++ b/ext/json/tests/json_exceptions_error_clearing.phpt
@@ -14,26 +14,26 @@ json_decode("\xFF");
var_dump(json_last_error());
try {
- json_decode("", false, 512, JSON_THROW_ON_ERROR);
+ json_decode("", false, 512, JSON_THROW_ON_ERROR);
} catch (JsonException $e) {
- echo "Caught JSON exception: ", $e->getCode(), PHP_EOL;
+ echo "Caught JSON exception: ", $e->getCode(), PHP_EOL;
}
var_dump(json_last_error());
try {
- json_decode("{", false, 512, JSON_THROW_ON_ERROR);
+ json_decode("{", false, 512, JSON_THROW_ON_ERROR);
} catch (JsonException $e) {
- echo "Caught JSON exception: ", $e->getCode(), PHP_EOL;
+ echo "Caught JSON exception: ", $e->getCode(), PHP_EOL;
}
var_dump(json_last_error());
try {
- json_encode(NAN, JSON_THROW_ON_ERROR);
+ json_encode(NAN, JSON_THROW_ON_ERROR);
} catch (JsonException $e) {
- echo "Caught JSON exception: ", $e->getCode(), PHP_EOL;
+ echo "Caught JSON exception: ", $e->getCode(), PHP_EOL;
}
var_dump(json_last_error());