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

package info (click to toggle)
php-imagick 3.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,288 kB
  • sloc: ansic: 17,876; php: 1,440; xml: 444; pascal: 80; sh: 19; makefile: 2
file content (66 lines) | stat: -rw-r--r-- 2,816 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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.8.0/imagick.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/imagick-3.8.0/imagick.c b/imagick-3.8.0/imagick.c
index c5f2c40..15dee80 100644
--- a/imagick-3.8.0/imagick.c
+++ b/imagick-3.8.0/imagick.c
@@ -132,7 +132,7 @@ static void php_imagick_object_free_storage(IM_ZEND_OBJECT *object TSRMLS_DC)
 	}
 
 	if (intern->progress_monitor_name) {
-		//TODO - is this meant to be free by us? 
+		//TODO - is this meant to be free by us?
 		efree(intern->progress_monitor_name);
 	}
 
@@ -442,7 +442,7 @@ static zend_object_value php_imagickpixel_object_new_ex(zend_class_entry *class_
 	intern->initialized_via_iterator = 0;
 	zend_object_std_init(&intern->zo, class_type TSRMLS_CC);
 	object_properties_init(&intern->zo, class_type);
-	
+
 #if PHP_VERSION_ID >= 70000
 #if PHP_VERSION_ID <  80300
 	intern->zo.handlers = &imagickpixel_object_handlers;
@@ -530,7 +530,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)
 
 	STD_PHP_INI_ENTRY("imagick.set_single_thread", "1", PHP_INI_SYSTEM, OnUpdateBool, set_single_thread, zend_imagick_globals, imagick_globals)
@@ -542,7 +542,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;
 	imagick_globals->set_single_thread = 1;
 	imagick_globals->allow_zero_dimension_images = 0;
 	// 10 is magick number, that seems to be enough.
@@ -733,7 +733,7 @@ static zval *php_imagick_read_property(zval *object, zval *member, int type, con
 	ret = std_hnd->has_property(object, member, 2 TSRMLS_CC);
 #else
 	ret = std_hnd->has_property(object, member, 2, key TSRMLS_CC);
-#endif	
+#endif
 
 	if (ret) {
 		std_hnd = zend_get_std_object_handlers();
@@ -1213,7 +1213,7 @@ PHP_MINFO_FUNCTION(imagick)
 #endif
 			IMAGICK_FREE_MAGICK_MEMORY(supported_formats[i]);
 		}
-		
+
 #if PHP_VERSION_ID >= 70000
 		smart_string_0(&formats);
 		php_info_print_table_row(2, "ImageMagick supported formats", formats.c);