summaryrefslogtreecommitdiffstats
path: root/imagick-pr690.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-09-27 15:51:16 +0200
committerRemi Collet <remi@php.net>2024-09-27 15:51:16 +0200
commit6566ce765a18af8df108ca18cc9e3d89961a20e0 (patch)
treefbaf63cdf61799e39a31fbe1fb43534634d52b32 /imagick-pr690.patch
parent6107578a98aec7d1aca8210766eb43811f9d0ac1 (diff)
add patch for PHP 8.4 from
https://github.com/Imagick/imagick/pull/690
Diffstat (limited to 'imagick-pr690.patch')
-rw-r--r--imagick-pr690.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/imagick-pr690.patch b/imagick-pr690.patch
new file mode 100644
index 0000000..189e745
--- /dev/null
+++ b/imagick-pr690.patch
@@ -0,0 +1,40 @@
+From 65e27f2bc02e7e8f1bf64e26e359e42a1331fca1 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= <mvorisek@mvorisek.cz>
+Date: Wed, 25 Sep 2024 10:56:28 +0200
+Subject: [PATCH] Fix removed "php_strtolower" for PHP 8.4
+
+---
+ imagick.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/imagick.c b/imagick.c
+index 1b765389..ebab7ae7 100644
+--- a/imagick.c
++++ b/imagick.c
+@@ -610,7 +610,7 @@ static zval *php_imagick_read_property(zend_object *object, zend_string *member,
+ if (format) {
+ retval = rv;
+ ZVAL_STRING(retval, format);
+- php_strtolower(Z_STRVAL_P(retval), Z_STRLEN_P(retval));
++ zend_str_tolower(Z_STRVAL_P(retval), Z_STRLEN_P(retval));
+ IMAGICK_FREE_MAGICK_MEMORY(format);
+ } else {
+ retval = rv;
+@@ -683,7 +683,7 @@ static zval *php_imagick_read_property(zval *object, zval *member, int type, voi
+ if (format) {
+ retval = rv;
+ ZVAL_STRING(retval, format);
+- php_strtolower(Z_STRVAL_P(retval), Z_STRLEN_P(retval));
++ zend_str_tolower(Z_STRVAL_P(retval), Z_STRLEN_P(retval));
+ IMAGICK_FREE_MAGICK_MEMORY(format);
+ } else {
+ retval = rv;
+@@ -766,7 +766,7 @@ static zval *php_imagick_read_property(zval *object, zval *member, int type, con
+
+ if (format) {
+ ZVAL_STRING(retval, format, 1);
+- php_strtolower(Z_STRVAL_P(retval), Z_STRLEN_P(retval));
++ zend_str_tolower(Z_STRVAL_P(retval), Z_STRLEN_P(retval));
+ IMAGICK_FREE_MAGICK_MEMORY(format);
+ } else {
+ ZVAL_STRING(retval, "", 1);