You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
php-igbinary: add php8[4,5] support
- add patch to fix build failure
This commit is contained in:
committed by
GitHub
parent
77fbec62a1
commit
d64c7d9ab2
@@ -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
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
From c7fe8aad3d7894bb85f5a189eba60dec9203950d Mon Sep 17 00:00:00 2001
|
||||
From: Remi Collet <remi@remirepo.net>
|
||||
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);
|
||||
Reference in New Issue
Block a user