diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-17 21:51:15 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-17 21:51:15 +0000 |
commit | 1c84472746c719c9cc496c9c7895060c135fd75c (patch) | |
tree | d15f65941b6c12d777666b6426affb713ac36c92 /installer/web.php | |
parent | bd3dd786e7b9f6a7ec447cef5ac89035083d216b (diff) |
Make our dependency on json_encode() an explicit requirement
Diffstat (limited to 'installer/web.php')
-rw-r--r-- | installer/web.php | 4 |
1 files changed, 4 insertions, 0 deletions
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 <a href=\"http://php.net/mbstring\">mbstring extension</a> is overloading PHP's native string functions. Please disable it."; } + if (!function_exists("json_encode")) { + $errors[] = "PHP is missing the <a href=\"http://php.net/manual/en/book.json.php\">JavaScript Object Notation (JSON) extension</a>. Please install it."; + } + return @$errors; } |