diff options
author | Remi Collet <remi@remirepo.net> | 2025-07-17 16:09:22 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2025-07-17 16:09:22 +0200 |
commit | 816e454dbc869a6f481f0a5b1d3a36e93ffa828c (patch) | |
tree | b554d2207fb8f56cd40fe62057e925b2835f1379 /varnish-pr3.patch | |
parent | 54c281e9ff5d351773a2ce9f035af22bf8999893 (diff) |
https://github.com/php/pecl-caching-varnish/pull/3
re-license spec file to CECILL-2.1
Diffstat (limited to 'varnish-pr3.patch')
-rw-r--r-- | varnish-pr3.patch | 23 |
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 |