aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php81-pecl-imagick/fix-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/php81-pecl-imagick/fix-test.patch')
-rw-r--r--testing/php81-pecl-imagick/fix-test.patch45
1 files changed, 0 insertions, 45 deletions
diff --git a/testing/php81-pecl-imagick/fix-test.patch b/testing/php81-pecl-imagick/fix-test.patch
deleted file mode 100644
index 8e05b48c40b..00000000000
--- a/testing/php81-pecl-imagick/fix-test.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From 9352cc3a587c91c155cfbc7ca4a2a3688d21b686 Mon Sep 17 00:00:00 2001
-From: Danack <Danack@basereality.com>
-Date: Fri, 7 Jan 2022 15:00:03 +0000
-Subject: [PATCH] Work around 4294967295 being above PHP_INT_MAX on 32bit arch.
-
----
- util/functions.php | 18 +++++++++---------
- 1 file changed, 9 insertions(+), 9 deletions(-)
-
-diff --git a/util/functions.php b/util/functions.php
-index a57a2483..d69baf48 100644
---- a/util/functions.php
-+++ b/util/functions.php
-@@ -223,22 +223,22 @@ function get_epsilon_for_off_by_half_errors()
- {
- // These could be defined better...
- $epsilon_values_for_non_hdri = [
-- 255 => (1 / (pow(2, 8) - 1)) + 0.0000000000001,
-- 65535 => (1 / (pow(2, 16) - 1)) + 0.0000000000001,
-- 16777215 => (1 / (pow(2, 24) - 1) ) + 0.0000000000001,
-- 4294967295 => (1 / (pow(2, 32) - 1)) + 0.0000000000001,
-+ '255' => (1 / (pow(2, 8) - 1)) + 0.0000000000001,
-+ '65535' => (1 / (pow(2, 16) - 1)) + 0.0000000000001,
-+ '16777215' => (1 / (pow(2, 24) - 1) ) + 0.0000000000001,
-+ '4294967295' => (1 / (pow(2, 32) - 1)) + 0.0000000000001,
- ];
-
- // These could definitely be defined better...
- $epsilon_values_for_hdri = [
-- 255 => 0.0000000000001,
-- 65535 => 0.0000000000001,
-- 16777215 => 0.0000000000001,
-- 4294967295 => 0.0000000000001
-+ '255' => 0.0000000000001,
-+ '65535' => 0.0000000000001,
-+ '16777215' => 0.0000000000001,
-+ '4294967295' => 0.0000000000001
- ];
-
- if (Imagick::getHdriEnabled() === false) {
-- $quantum = Imagick::getQuantum();
-+ $quantum = (string)Imagick::getQuantum();
- if (array_key_exists($quantum, $epsilon_values_for_non_hdri) !== true) {
- throw new Exception(
- "Quantum values is $quantum which is not any of (2^(8|16|24|32)) - 1. Please report this as a bug."