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 --- frontends/php/include/setup.inc.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'frontends/php/include/setup.inc.php') 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