Poidsy compatibility test

'; echo ''; if (!$result) { echo ''; } echo ''; } echo ''; doTest('PHP Version', version_compare(PHP_VERSION, '5.2.10', '>='), 'Poidsy requires PHP version 5.2.10 or greater to run'); doTest('Allow_url_fopen', ini_get('allow_url_fopen'), 'Poidsy requires allow_url_fopen to be configured to true'); echo ''; doTest('hash_hmac function', function_exists('hash_hmac'), 'Poidsy requires the hash_hmac function to use associate mode. It should be available in PHP 5.2.0 or greater, unless you\'ve explicitly disabled it when compiling PHP'); doTest('Keycache writable', is_writable(dirname(__FILE__) . '/keycache.php'), 'Poidsy requires write access to the keycache.php file in its directory. Without it, Poidsy will be unable to use associate mode.'); echo ''; $extensions = array( array('modules' => array('gmp', 'php_gmp'), 'extension' => 'gmp'), array('modules' => array('bcmath', 'php_bcmath'), 'extension' => 'bcmath') ); $best = ''; foreach ($extensions as $ext) { if ($ext['extension'] && extension_loaded($ext['extension'])) { $loaded = true; } elseif (function_exists('dl')) { foreach ($ext['modules'] as $module) { if (@dl($module . "." . PHP_SHLIB_SUFFIX)) { $loaded = true; break; } } } if ($loaded) { $best = $ext['extension']; break; } } echo ''; echo ''; if ($best == 'bcmath') { echo ''; } else if ($best == '') { echo ''; } echo ''; ?>
', htmlentities($name), ''; echo $result ? 'Passed' : 'Failed'; echo '', $failinfo, '
Poidsy requirements
Associate mode requirements
Diffie-Hellman key exchange requirements
Bigmath support'; echo $best != '' ? $best : 'Failed'; echo 'Your version of PHP has bcmath support, which is good enough for Poidsy to use, but is much slower than gmp.Your version of PHP doesn\'t have support for either gmp (preferred) or bcmath. Poidsy needs one of these libraries to perform D-H key exchange.