From b732e186700a82ef7355ddebeb9e59bfdeb79fdc Mon Sep 17 00:00:00 2001 From: osmiy Date: Tue, 6 Mar 2007 13:17:51 +0000 Subject: - added installation check for 'BC math' (Eugene) git-svn-id: svn://svn.zabbix.com/trunk@3872 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- ChangeLog | 1 + frontends/php/include/setup.inc.php | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/ChangeLog b/ChangeLog index 28d35252..fc53a4e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ Changes for 1.3.4: + - added installation check for 'BC math' (Eugene) - added 'UNKNOWN' status for elements of map (Eugene) - added actions.evaltype (Alexei) - added support of all AND, all OR and AND/OR action conditions (Alexei) 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')) -- cgit