pajoye          Fri Mar 10 18:15:21 2006 UTC

  Modified files:              
    /php-src/ext/gd     gd.c 
  Log:
  - MFB: #36686, do not be quiet with the extern GD
  
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/gd/gd.c?r1=1.348&r2=1.349&diff_format=u
Index: php-src/ext/gd/gd.c
diff -u php-src/ext/gd/gd.c:1.348 php-src/ext/gd/gd.c:1.349
--- php-src/ext/gd/gd.c:1.348   Sun Mar  5 19:20:11 2006
+++ php-src/ext/gd/gd.c Fri Mar 10 18:15:21 2006
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: gd.c,v 1.348 2006/03/05 19:20:11 pajoye Exp $ */
+/* $Id: gd.c,v 1.349 2006/03/10 18:15:21 pajoye Exp $ */
 
 /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
    Cold Spring Harbor Labs. */
@@ -1456,7 +1456,11 @@
 #ifdef HAVE_GD_JPG
                        case PHP_GDIMG_TYPE_JPG:
                                ignore_warning = 
INI_INT("gd.jpeg_ignore_warning");
+#ifdef HAVE_GD_BUNDLED
                                im = gdImageCreateFromJpeg(fp, ignore_warning);
+#else
+                               im = gdImageCreateFromJpeg(fp);
+#endif
                                break;
 #endif
 
@@ -3649,7 +3653,11 @@
 #ifdef HAVE_GD_JPG
                case PHP_GDIMG_TYPE_JPG:
                        ignore_warning = INI_INT("gd.jpeg_ignore_warning");
+#ifdef HAVE_GD_BUNDLED
                        im_org = gdImageCreateFromJpeg(org, ignore_warning);
+#else
+                       im_org = gdImageCreateFromJpeg(org);
+#endif
                        if (im_org == NULL) {
                                php_error_docref(NULL TSRMLS_CC, E_WARNING, 
"Unable to open '%s' Not a valid JPEG file", fn_dest);
                                RETURN_FALSE;

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

Reply via email to