]> granicus.if.org Git - php/commitdiff
- MFH: fix build when use with a museum freetype version (1.x)
authorPierre Joye <pajoye@php.net>
Mon, 7 May 2007 14:54:36 +0000 (14:54 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 7 May 2007 14:54:36 +0000 (14:54 +0000)
NEWS
ext/gd/gd.c

diff --git a/NEWS b/NEWS
index 06eb440cf32934331301cfa1b38ed84ee37dcc3b..5df902868337c84f30ae52acf7bb76e7be9cb3f3 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ PHP                                                                        NEWS
 - Fixed PHP CLI to use the php.ini from the binary location. (Hannes)
 - Fixed bug #41293 (Fixed creation of HTTP_RAW_POST_DATA when there is no
   default post handler). (Ilia)
+- Fixed gd build when used with freetype 1.x (Pierre, Tony)
 - Fixed bug #41287 (Namespace functions don't allow xmlns defintion to be 
   optional). (Rob)
 - Fixed bug #41285 (Improved fix for CVE-2007-1887 to work with non-bundled
index 8f6e3f7a73f360ff6ac25249871e2e1ae8adf1d3..71bd7b966a4eda0efd27ef160882c46a1eae13e3 100644 (file)
@@ -1370,8 +1370,10 @@ PHP_MINFO_FUNCTION(gd)
                char tmp[256];
 #ifdef FREETYPE_PATCH
                snprintf(tmp, sizeof(tmp), "%d.%d.%d", FREETYPE_MAJOR, FREETYPE_MINOR, FREETYPE_PATCH);
-#else
+#elif defined(FREETYPE_MAJOR)
                snprintf(tmp, sizeof(tmp), "%d.%d", FREETYPE_MAJOR, FREETYPE_MINOR);
+#else
+               snprintf(tmp, sizeof(tmp), "1.x");
 #endif
                php_info_print_table_row(2, "FreeType Version", tmp);
        }