com php-src: Change default gd.jpeg_ignore_warning = 1: ext/gd/gd.c php.ini-development php.ini-p roduction
| From: | Christoph Michael Becker | Date: | Wed, 15 Jun 2016 12:00:18 +0000 |
| Subject: | com php-src: Change default gd.jpeg_ignore_warning = 1: ext/gd/gd.c php.ini-development php.ini-p roduction | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92735@lists.php.net to get a copy of this message | ||
Commit: c0efb06ee6aa1fcd8e5a2907ce71ba694626e4f4
Author: Christoph M. Becker <cmbecker69@gmx.de> Wed, 15 Jun 2016 14:00:18 +0200
Parents: 334db3b9216446ae4920d229c6d51ce8eab85f26
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c0efb06ee6aa1fcd8e5a2907ce71ba694626e4f4
Log:
Change default gd.jpeg_ignore_warning = 1
Ignoring these warnings apparently works fine (libgd does so in
gdImageCreateJpeg()), but not ignoring them may cause imagecreatefromjpeg()
to fail completely, so it seems reasonable to ignore warnings by default.
Note that this change most likely doesn't constitute a BC break; we're
simply being more resilient with regard to slightly broken JPEGs.
See also the related [bug #72404](https://bugs.php.net/bug.php?id=72404).
Bugs:
https://bugs.php.net/72404
Changed paths:
M ext/gd/gd.c
M php.ini-development
M php.ini-production
Diff:
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index b099909..8d27b2c 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -989,7 +989,7 @@ ZEND_GET_MODULE(gd)
/* {{{ PHP_INI_BEGIN */
PHP_INI_BEGIN()
- PHP_INI_ENTRY("gd.jpeg_ignore_warning", "0", PHP_INI_ALL, NULL)
+ PHP_INI_ENTRY("gd.jpeg_ignore_warning", "1", PHP_INI_ALL, NULL)
PHP_INI_END()
/* }}} */
diff --git a/php.ini-development b/php.ini-development
index 604efc4..7a81f9a 100644
--- a/php.ini-development
+++ b/php.ini-development
@@ -1653,7 +1653,7 @@ zend.assertions = 1
; a gd image. The warning will then be displayed as notices
; disabled by default
; http://php.net/gd.jpeg-ignore-warning
-;gd.jpeg_ignore_warning = 0
+;gd.jpeg_ignore_warning = 1
[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
diff --git a/php.ini-production b/php.ini-production
index f2723f6..3185e9b 100644
--- a/php.ini-production
+++ b/php.ini-production
@@ -1653,7 +1653,7 @@ zend.assertions = -1
; a gd image. The warning will then be displayed as notices
; disabled by default
; http://php.net/gd.jpeg-ignore-warning
-;gd.jpeg_ignore_warning = 0
+;gd.jpeg_ignore_warning = 1
[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.