pajoye          Sun Feb  5 15:53:02 2006 UTC

  Modified files:              
    /php-src/ext/gd     gd.c 
  Log:
  - test for jpeg support
  
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/gd/gd.c?r1=1.343&r2=1.344&diff_format=u
Index: php-src/ext/gd/gd.c
diff -u php-src/ext/gd/gd.c:1.343 php-src/ext/gd/gd.c:1.344
--- php-src/ext/gd/gd.c:1.343   Thu Feb  2 20:30:54 2006
+++ php-src/ext/gd/gd.c Sun Feb  5 15:53:02 2006
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: gd.c,v 1.343 2006/02/02 20:30:54 pajoye Exp $ */
+/* $Id: gd.c,v 1.344 2006/02/05 15:53:02 pajoye Exp $ */
 
 /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
    Cold Spring Harbor Labs. */
@@ -1454,10 +1454,13 @@
                                im = gdImageCreateFromXpm(fn);
                                break;
 #endif
+
+#ifdef HAVE_GD_JPG
                        case PHP_GDIMG_TYPE_JPG:
                                ignore_warning = 
INI_INT("gd.jpeg_ignore_warning");
                                im = gdImageCreateFromJpeg(fp, ignore_warning);
                                break;
+#endif
 
                        default:
                                im = (*func_p)(fp);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to