From 1c84472746c719c9cc496c9c7895060c135fd75c Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 17 May 2009 21:51:15 +0000 Subject: Make our dependency on json_encode() an explicit requirement --- installer/web.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'installer') diff --git a/installer/web.php b/installer/web.php index 4b8664fb..61f26f7d 100644 --- a/installer/web.php +++ b/installer/web.php @@ -108,5 +108,9 @@ function check_environment() { $errors[] = "The mbstring extension is overloading PHP's native string functions. Please disable it."; } + if (!function_exists("json_encode")) { + $errors[] = "PHP is missing the JavaScript Object Notation (JSON) extension. Please install it."; + } + return @$errors; } -- cgit v1.2.3