]> granicus.if.org Git - php/commitdiff
MFH(r-1.135, r-1.268): made phpinfo() / gd_info() indicate availability of
authorMoriyoshi Koizumi <moriyoshi@php.net>
Sat, 19 Apr 2003 07:45:45 +0000 (07:45 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Sat, 19 Apr 2003 07:45:45 +0000 (07:45 +0000)
JIS feature

ext/gd/config.m4
ext/gd/gd.c

index 7d5f2c76ced4b5ffe610e8395acc41f6e542e08c..c04a10fa086fde40f8d120fa4628e20e22879c16 100644 (file)
@@ -230,7 +230,7 @@ AC_DEFUN(PHP_GD_TTSTR,[
 
 AC_DEFUN(PHP_GD_JISX0208,[
   if test "$PHP_GD_JIS_CONV" = "yes"; then
-   USE_GD_JIS_CONV=1
+    USE_GD_JIS_CONV=1
   fi
 ])
 
@@ -330,6 +330,7 @@ dnl enable the support in bundled GD library
   fi
 
   if test -n "$USE_GD_JIS_CONV"; then
+    AC_DEFINE(USE_GD_JISX0208, 1, [ ])
     GDLIB_CFLAGS="$GDLIB_CFLAGS -DJISX0208"
   fi
 
index f4ac03e2536bf8215aa34a2274e1c95edc65fc7e..4491dc1487548eda363cabf3c8d4db151235af64 100644 (file)
@@ -442,6 +442,9 @@ PHP_MINFO_FUNCTION(gd)
 #endif
 #ifdef HAVE_GD_XBM
        php_info_print_table_row(2, "XBM Support", "enabled");
+#endif
+#if defined(USE_GD_JISX0208) && defined(HAVE_GD_BUNDLED)
+       php_info_print_table_row(2, "JIS-mapped Japanese Font Support", "enabled");
 #endif
        php_info_print_table_end();
 }
@@ -508,6 +511,11 @@ PHP_FUNCTION(gd_info)
 #else
        add_assoc_bool(return_value, "XBM Support", 0);
 #endif
+#if defined(USE_GD_JISX0208) && defined(HAVE_GD_BUNDLED)
+       add_assoc_bool(return_value, "JIS-mapped Japanese Font Support", 1);
+#else
+       add_assoc_bool(return_value, "JIS-mapped Japanese Font Support", 0);
+#endif
 }
 /* }}} */