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-svm: patched for php >= 8.5
This commit is contained in:
@@ -5,19 +5,24 @@ PortGroup php 1.1
|
||||
|
||||
name php-svm
|
||||
categories-append math
|
||||
maintainers {ryandesign @ryandesign} openmaintainer
|
||||
maintainers {ryandesign @ryandesign} {mathiesen.info:macintosh BjarneDMat}
|
||||
license BSD
|
||||
|
||||
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
|
||||
php.pecl.prerelease yes
|
||||
|
||||
if {[vercmp ${php.branch} >= 7.0]} {
|
||||
version 0.2.3
|
||||
revision 4
|
||||
revision 5
|
||||
checksums rmd160 0df66ac9fb15b82efbf8de56439aabc7cfca4e69 \
|
||||
sha256 80cf414942cc558a6934d0a508f056daaaa7399df5bd8dc556bff5ee1ebf5c9a \
|
||||
size 130776
|
||||
|
||||
patch.pre_args-replace -p0 -p1
|
||||
patchfiles-append \
|
||||
patch_zend-ce-exception.diff
|
||||
|
||||
} elseif {[vercmp ${php.branch} >= 5.2]} {
|
||||
version 0.1.9
|
||||
revision 5
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
From 0c26d905421b2a7e4df3b00c7093b15e9dee34a8 Mon Sep 17 00:00:00 2001
|
||||
From: Jean-Baptiste Nahan <814683+macintoshplus@users.noreply.github.com>
|
||||
Date: Tue, 7 Oct 2025 17:52:13 +0200
|
||||
Subject: [PATCH] Fix zend_ce_exception for PHP 8.5
|
||||
|
||||
---
|
||||
svm.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/svm.c b/svm.c
|
||||
index bdc8da4..6607882 100755
|
||||
--- a/svm.c
|
||||
+++ b/svm.c
|
||||
@@ -1373,7 +1373,11 @@ PHP_MINIT_FUNCTION(svm)/*{{{*/
|
||||
php_svm_model_sc_entry = zend_register_internal_class(&ce);
|
||||
|
||||
INIT_CLASS_ENTRY(ce, "svmexception", NULL);
|
||||
+#if PHP_VERSION_ID < 80500
|
||||
php_svm_exception_sc_entry = zend_register_internal_class_ex(&ce, zend_exception_get_default());
|
||||
+#else
|
||||
+ php_svm_exception_sc_entry = zend_register_internal_class_ex(&ce, zend_ce_exception);
|
||||
+#endif
|
||||
php_svm_exception_sc_entry->ce_flags |= ZEND_ACC_FINAL;
|
||||
|
||||
/* Redirect the lib svm output */
|
||||
Reference in New Issue
Block a user