File: 0002-Skip-version-check-by-default.patch

package info (click to toggle)
php-imagick 3.4.3-4.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,456 kB
  • sloc: ansic: 18,748; xml: 359; php: 177; makefile: 1
file content (30 lines) | stat: -rw-r--r-- 1,331 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: =?utf-8?b?T25kxZllaiBTdXLDvQ==?= <ondrej@sury.org>
Date: Tue, 1 Nov 2016 08:56:57 +0100
Subject: Skip version check by default

---
 imagick-3.4.3/imagick.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/imagick-3.4.3/imagick.c b/imagick-3.4.3/imagick.c
index 1698e03..a447469 100644
--- a/imagick-3.4.3/imagick.c
+++ b/imagick-3.4.3/imagick.c
@@ -3219,7 +3219,7 @@ static zend_object_value php_imagickkernel_object_new(zend_class_entry *class_ty
 
 PHP_INI_BEGIN()
 	STD_PHP_INI_ENTRY("imagick.locale_fix", "0", PHP_INI_ALL, OnUpdateBool, locale_fix, zend_imagick_globals, imagick_globals)
-	STD_PHP_INI_ENTRY("imagick.skip_version_check", "0", PHP_INI_ALL, OnUpdateBool, skip_version_check, zend_imagick_globals, imagick_globals)
+	STD_PHP_INI_ENTRY("imagick.skip_version_check", "1", PHP_INI_ALL, OnUpdateBool, skip_version_check, zend_imagick_globals, imagick_globals)
 	STD_PHP_INI_ENTRY("imagick.progress_monitor", "0", PHP_INI_SYSTEM, OnUpdateBool, progress_monitor, zend_imagick_globals, imagick_globals)
 PHP_INI_END()
 
@@ -3227,7 +3227,7 @@ static void php_imagick_init_globals(zend_imagick_globals *imagick_globals)
 {
 	imagick_globals->locale_fix = 0;
 	imagick_globals->progress_monitor = 0;
-	imagick_globals->skip_version_check = 0;
+	imagick_globals->skip_version_check = 1;
 }