From f5b898302bc027f6346db1826de14f0e4d11080b Mon Sep 17 00:00:00 2001 From: BjarneDMat Date: Mon, 13 Apr 2026 11:54:16 +0200 Subject: [PATCH] php-gearman: update to 2.2.1 --- php/php-gearman/Portfile | 14 ++++++------ .../files/patch_zend-ce-exception.diff | 22 ------------------- 2 files changed, 7 insertions(+), 29 deletions(-) delete mode 100644 php/php-gearman/files/patch_zend-ce-exception.diff diff --git a/php/php-gearman/Portfile b/php/php-gearman/Portfile index c96d714e950..6b793bae5af 100644 --- a/php/php-gearman/Portfile +++ b/php/php-gearman/Portfile @@ -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 } diff --git a/php/php-gearman/files/patch_zend-ce-exception.diff b/php/php-gearman/files/patch_zend-ce-exception.diff deleted file mode 100644 index c8f933b83ce..00000000000 --- a/php/php-gearman/files/patch_zend-ce-exception.diff +++ /dev/null @@ -1,22 +0,0 @@ -From 7b692ca6d0184e99e242fec7be0b261988ac1755 Mon Sep 17 00:00:00 2001 -From: Remi Collet -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); -