hmm...
That's odd, because checkGD reads:
function checkGD()
{
global $gd2;
// Check to see if GD is installed and what version.
if (($extensionFunctions = get_extension_funcs('gd')) === false)
return false;
// Also determine if GD2 is installed and store it in a global.
$gd2 = in_array('imagecreatetruecolor', $extensionFunctions) && function_exists('imagecreatetruecolor');
return true;
}
so, since get_extension_funcs returns something, it should evaluate to false, meaning it returns true and removing the bits you have removed should not make any difference.
Try something slightly different, run this:
<?php
function checkGD()
{
global $gd2;
// Check to see if GD is installed and what version.
if (($extensionFunctions = get_extension_funcs('gd')) === false)
return false;
// Also determine if GD2 is installed and store it in a global.
$gd2 = in_array('imagecreatetruecolor', $extensionFunctions) && function_exists('imagecreatetruecolor');
return true;
}
global $gd2;
if (!checkGD())
echo "not gd\n";
else
echo "yes gd\n";
and see what the result is.