summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/setup.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-03-06 13:17:51 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-03-06 13:17:51 +0000
commitb732e186700a82ef7355ddebeb9e59bfdeb79fdc (patch)
tree6227b3af75ea7bcee96cf4d7a2189ab68a483370 /frontends/php/include/setup.inc.php
parentd31ab2fdc7a4e1629c62480005e7df1e9c412944 (diff)
downloadzabbix-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.php20
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'))