summaryrefslogtreecommitdiffstats
path: root/0001-use-zend_ce_exception-instead-of-zend_exception_get_.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-09-17 07:14:49 +0200
committerRemi Collet <remi@php.net>2025-09-17 07:14:49 +0200
commitaec2ee819d1039478537d36cc76b4c200a4b4a38 (patch)
tree7e1d46cd6a14e76289a8ddaac03b11fba479855a /0001-use-zend_ce_exception-instead-of-zend_exception_get_.patch
parentc8482f9c6b5368fbb207f90600eb60214fbd01fd (diff)
fix build with PHP 8.5.0alpha2 using patch fromHEADmaster
re-license spec file to CECILL-2.1
Diffstat (limited to '0001-use-zend_ce_exception-instead-of-zend_exception_get_.patch')
-rw-r--r--0001-use-zend_ce_exception-instead-of-zend_exception_get_.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/0001-use-zend_ce_exception-instead-of-zend_exception_get_.patch b/0001-use-zend_ce_exception-instead-of-zend_exception_get_.patch
new file mode 100644
index 0000000..454c5ff
--- /dev/null
+++ b/0001-use-zend_ce_exception-instead-of-zend_exception_get_.patch
@@ -0,0 +1,29 @@
+From 833412c316ba370718cdb46368199c9bae6fa5af Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Thu, 17 Jul 2025 10:44:23 +0200
+Subject: [PATCH] use zend_ce_exception instead of zend_exception_get_default()
+ for 8.5
+
+---
+ geos.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/geos.c b/geos.c
+index ad2dce2..8f4bdd3 100644
+--- a/geos.c
++++ b/geos.c
+@@ -150,7 +150,11 @@ static void errorHandler(const char *fmt, ...)
+ va_end(args);
+
+ /* TODO: use a GEOSException ? */
++#if PHP_VERSION_ID < 80000
+ zend_throw_exception_ex(zend_exception_get_default(TSRMLS_C),
++#else
++ zend_throw_exception_ex(zend_ce_exception,
++#endif
+ 1 TSRMLS_CC, "%s", message);
+
+ }
+--
+2.50.1
+