summaryrefslogtreecommitdiffstats
path: root/0001-use-zend_ce_exception-instead-of-zend_exception_get_.patch
diff options
context:
space:
mode:
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
+