From d64c7d9ab2ff54e22491e53182e95650d3b78160 Mon Sep 17 00:00:00 2001 From: Bjarne D Mathiesen Date: Sun, 22 Mar 2026 15:56:44 +0100 Subject: [PATCH] php-igbinary: add php8[4,5] support - add patch to fix build failure --- php/php-igbinary/Portfile | 7 ++++-- .../files/patch-src_php7_php_igbinary.h.diff | 25 +++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 php/php-igbinary/files/patch-src_php7_php_igbinary.h.diff diff --git a/php/php-igbinary/Portfile b/php/php-igbinary/Portfile index e7abf2cac17..cf176d67ecd 100644 --- a/php/php-igbinary/Portfile +++ b/php/php-igbinary/Portfile @@ -7,9 +7,9 @@ name php-igbinary categories-append net devel license BSD PHP-3.01 platforms darwin freebsd openbsd -maintainers {ryandesign @ryandesign} openmaintainer +maintainers {ryandesign @ryandesign} {mathiesen.info:macintosh BjarneDMat} openmaintainer -php.branches 5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 +php.branches 5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4 8.5 php.pecl yes if {[vercmp ${php.branch} >= 7.0]} { @@ -18,6 +18,9 @@ if {[vercmp ${php.branch} >= 7.0]} { checksums rmd160 26d4b5ffddb6c2692b6bca70f1c1279a605d75bb \ sha256 8bf25d465abc7973d9e2c9a3039a5f8eea635b23bc1477017ff3999ff95836da \ size 103279 + patch.pre_args-replace -p0 -p1 + patchfiles-append \ + patch-src_php7_php_igbinary.h.diff } elseif {[vercmp ${php.branch} >= 5.2]} { version 2.0.8 revision 0 diff --git a/php/php-igbinary/files/patch-src_php7_php_igbinary.h.diff b/php/php-igbinary/files/patch-src_php7_php_igbinary.h.diff new file mode 100644 index 00000000000..117abd22467 --- /dev/null +++ b/php/php-igbinary/files/patch-src_php7_php_igbinary.h.diff @@ -0,0 +1,25 @@ +From c7fe8aad3d7894bb85f5a189eba60dec9203950d Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Wed, 30 Jul 2025 11:38:30 +0200 +Subject: [PATCH] use Zend/zend_smart_string.h + +--- + src/php7/php_igbinary.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/php7/php_igbinary.h b/src/php7/php_igbinary.h +index 07312b76..d64c3702 100644 +--- a/src/php7/php_igbinary.h ++++ b/src/php7/php_igbinary.h +@@ -32,7 +32,11 @@ ZEND_END_MODULE_GLOBALS(igbinary) + #include "TSRM.h" + #endif + ++#if PHP_VERSION_ID < 70200 + #include "ext/standard/php_smart_string.h" ++#else ++#include "Zend/zend_smart_string.h" ++#endif + + /** Module init function. */ + PHP_MINIT_FUNCTION(igbinary);