]> granicus.if.org Git - php/commitdiff
MFH: Fixed a bug that prevented building of the GD extension against
authorIlia Alshanetsky <iliaa@php.net>
Sun, 4 Apr 2004 18:00:23 +0000 (18:00 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 4 Apr 2004 18:00:23 +0000 (18:00 +0000)
external GD lib 1.X.

NEWS
ext/gd/gd.c

diff --git a/NEWS b/NEWS
index 90dd21d594a0ed2ae7ad420c1f0fb33e055c386a..278e3fc360b056941de8f86e2275d1982b51290d 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@ PHP 4                                                                      NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 01 Apr 2004, Version 4.3.6RC1
 - Synchronized bundled GD library with GD 2.0.22. (Ilia)
+- Fixed a bug that prevented building of the GD extension against external GD
+  lib 1.X. (Ilia, Nick Talbott).
 - Fixed bug #27849 (configure craps out on trivial syntax error). (Derick)
 - Fixed bug #27822 (is_resource() returns TRUE for closed resources). (Derick)
 - Fixed bug #27819 (problems returning reference to a reference parameter).
index 47b8deb389da88284b36fd1526455e167750eb4e..2a9890968ce405e5b07a3916fd591b6379addf3e 100644 (file)
@@ -1616,6 +1616,7 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char
                }
 
                switch(image_type) {
+#ifdef HAVE_GD_WBMP
                        case PHP_GDIMG_CONVERT_WBM:
                                if (q == -1) {
                                        q = 0;
@@ -1625,6 +1626,7 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char
                                }
                                gdImageWBMP(im, q, fp);
                                break;
+#endif
                        case PHP_GDIMG_TYPE_JPG:
                                (*func_p)(im, fp, q);
                                break;
@@ -1663,6 +1665,7 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char
                }
 
                switch(image_type) {
+#ifdef HAVE_GD_WBMP
                        case PHP_GDIMG_CONVERT_WBM:
                                if (q == -1) {
                                        q = 0;
@@ -1672,6 +1675,7 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char
                                }
                                gdImageWBMP(im, q, tmp);
                                break;
+#endif
                        case PHP_GDIMG_TYPE_JPG:
                                (*func_p)(im, tmp, q);
                                break;