summaryrefslogtreecommitdiffstats
path: root/varnish-pr3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'varnish-pr3.patch')
-rw-r--r--varnish-pr3.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/varnish-pr3.patch b/varnish-pr3.patch
new file mode 100644
index 0000000..35ed41a
--- /dev/null
+++ b/varnish-pr3.patch
@@ -0,0 +1,23 @@
+From e3382b347be919f9c725a9b7bbf8f990218dc6f7 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Thu, 17 Jul 2025 16:03:49 +0200
+Subject: [PATCH] use zend_ce_exception instead of zend_exception_get_default()
+ for 8.5
+
+---
+ varnish.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/varnish.c b/varnish.c
+index d49204b..ee0cfd9 100644
+--- a/varnish.c
++++ b/varnish.c
+@@ -247,7 +247,7 @@ zend_declare_class_constant_long(VarnishLog_ce, "TAG_"#foo, strlen("TAG_"#foo),
+ /* Init exceptions */
+ INIT_CLASS_ENTRY(ce, "VarnishException", NULL);
+ #if PHP_MAJOR_VERSION >= 7
+- VarnishException_ce = zend_register_internal_class_ex(&ce, zend_exception_get_default());
++ VarnishException_ce = zend_register_internal_class_ex(&ce, zend_ce_exception);
+ #else
+ VarnishException_ce = zend_register_internal_class_ex(
+ &ce, NULL, "exception" TSRMLS_CC