php-gearman: update to 2.2.1

This commit is contained in:
BjarneDMat
2026-04-13 11:54:16 +02:00
committed by Renee Otten
parent f4398c9e20
commit f5b898302b
2 changed files with 7 additions and 29 deletions
+7 -7
View File
@@ -16,7 +16,13 @@ php.pecl yes
description Library to provide API for communicating with gearmand, using libgearman.
long_description Library to provide API for communicating with gearmand, and writing clients and workers.
if {[vercmp ${php.branch} >= 7.1]} {
if {[vercmp ${php.branch} >= 7.2]} {
version 2.2.1
revision 0
checksums rmd160 2d6c3ec52c921812859eed1e6966ac156e78492f \
sha256 b9f826c90c87e6abd74cc3a73132c025c03e4bd2ae4360c4edc822ff651d694d \
size 53047
} elseif {[vercmp ${php.branch} >= 7.1]} {
version 2.1.4
revision 0
checksums rmd160 2c7a401c711b804767459458f1125229c94f161c \
@@ -36,12 +42,6 @@ if {[vercmp ${php.branch} >= 7.1]} {
size 30961
}
if {[vercmp ${php.branch} >= 8.5]} {
patch.pre_args-replace -p0 -p1
patchfiles-append \
patch_zend-ce-exception.diff
}
if {${name} ne ${subport}} {
depends_lib-append port:gearmand
}
@@ -1,22 +0,0 @@
From 7b692ca6d0184e99e242fec7be0b261988ac1755 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Thu, 17 Jul 2025 14:41:59 +0200
Subject: [PATCH] use zend_ce_exception instead of zend_exception_get_default() for 8.5
---
php_gearman.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/php_gearman.c b/php_gearman.c
index cf4d3a7..9d885cf 100644
--- a/php_gearman.c
+++ b/php_gearman.c
@@ -121,7 +121,7 @@ PHP_MINIT_FUNCTION(gearman) {
/* XXX exception class */
INIT_CLASS_ENTRY(ce, "GearmanException", class_GearmanException_methods)
- gearman_exception_ce = zend_register_internal_class_ex(&ce, zend_exception_get_default());
+ gearman_exception_ce = zend_register_internal_class_ex(&ce, zend_ce_exception);
gearman_exception_ce->ce_flags |= ZEND_ACC_FINAL;
zend_declare_property_long(gearman_exception_ce, "code", sizeof("code")-1, 0, ZEND_ACC_PUBLIC);