summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2003-03-31 08:49:30 +0000
committerfoobar <sniper@php.net>2003-03-31 08:49:30 +0000
commit666d9dea2c8f40204ba96ca546323f236b22b386 (patch)
tree5ae990a99f48a26c70654562e1767864eb76610a
parentc334a7fe0b26b6950a25db3aabf26a657240ad4d (diff)
downloadphp-git-666d9dea2c8f40204ba96ca546323f236b22b386.tar.gz
cleanup
-rw-r--r--ext/gd/gd.c4
-rw-r--r--ext/gd/php_gd.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 0aea7231cc..04ae131d2a 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -376,13 +376,13 @@ PHP_MINIT_FUNCTION(gd)
/* {{{ PHP_RSHUTDOWN_FUNCTION
*/
+#if HAVE_LIBGD20 && HAVE_GD_STRINGFT
PHP_RSHUTDOWN_FUNCTION(gd)
{
-#if HAVE_LIBGD20 && HAVE_GD_STRINGFT
gdFreeFontCache();
-#endif
return SUCCESS;
}
+#endif
/* }}} */
/* {{{ PHP_MINFO_FUNCTION
diff --git a/ext/gd/php_gd.h b/ext/gd/php_gd.h
index d5614dc3d7..2c9896ccf2 100644
--- a/ext/gd/php_gd.h
+++ b/ext/gd/php_gd.h
@@ -58,7 +58,9 @@ extern zend_module_entry gd_module_entry;
PHP_MINFO_FUNCTION(gd);
PHP_MINIT_FUNCTION(gd);
PHP_MSHUTDOWN_FUNCTION(gd);
+#if HAVE_LIBGD20 && HAVE_GD_STRINGFT
PHP_RSHUTDOWN_FUNCTION(gd);
+#endif
PHP_FUNCTION(gd_info);
PHP_FUNCTION(imagearc);