diff options
| author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-03-06 13:17:51 +0000 |
|---|---|---|
| committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-03-06 13:17:51 +0000 |
| commit | b732e186700a82ef7355ddebeb9e59bfdeb79fdc (patch) | |
| tree | 6227b3af75ea7bcee96cf4d7a2189ab68a483370 /frontends/php/include/setup.inc.php | |
| parent | d31ab2fdc7a4e1629c62480005e7df1e9c412944 (diff) | |
| download | zabbix-b732e186700a82ef7355ddebeb9e59bfdeb79fdc.tar.gz zabbix-b732e186700a82ef7355ddebeb9e59bfdeb79fdc.tar.xz zabbix-b732e186700a82ef7355ddebeb9e59bfdeb79fdc.zip | |
- added installation check for 'BC math' (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3872 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/setup.inc.php')
| -rw-r--r-- | frontends/php/include/setup.inc.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/frontends/php/include/setup.inc.php b/frontends/php/include/setup.inc.php index 107e7bc0..be642e14 100644 --- a/frontends/php/include/setup.inc.php +++ b/frontends/php/include/setup.inc.php @@ -239,6 +239,26 @@ !isset($ZBX_CONFIG['allowed_db']['no']), 'Required any databases support [MySQL or PostgreSQL or Oracle]')); + /* Check BC math */ + $bcmath_fnc_exist = + function_exists('bcadd') && + function_exists('bccomp') && + function_exists('bcdiv') && + function_exists('bcmod') && + function_exists('bcmul') && + function_exists('bcpow') && + function_exists('bcpowmod') && + function_exists('bcscale') && + function_exists('bcsqrt') && + function_exists('bcsub'); + $table->AddRow( + get_test_result( + $final_result, + 'PHP BC math support', + $bcmath_fnc_exist ? 'yes' : 'no', + $bcmath_fnc_exist, + 'Required bcmath module [configured PHP with --enable-bcmath]')); + /* Check GD existence */ $gd_version = S_NO; if(is_callable('gd_info')) |
