bug 736111

This commit is contained in:
Marc Delisle
2003-05-14 13:12:15 +00:00
parent 6c29940d62
commit d134073bff
2 changed files with 6 additions and 8 deletions

View File

@@ -64,14 +64,9 @@ if (!defined('PMA_IS_WINDOWS')) {
// Whether GD2 is present
if (!defined('PMA_IS_GD2')) {
if (function_exists("get_extension_funcs")) {
$testGD = @get_extension_funcs("gd");
if ($testGD && in_array("imagegd2",$testGD)) {
define('PMA_IS_GD2', 1);
} else {
define('PMA_IS_GD2', 0);
}
unset($testGD);
$testGD = @imagecreatetruecolor(12,12);
if ($testGD) {
define('PMA_IS_GD2', 1);
} else {
define('PMA_IS_GD2', 0);
}