summaryrefslogtreecommitdiffstats
path: root/varnish-pr3.patch
blob: 35ed41a2a7dddf31a16ec05644b63d845c0e091e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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