From 816e454dbc869a6f481f0a5b1d3a36e93ffa828c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 17 Jul 2025 16:09:22 +0200 Subject: add fix for PHP 8.5.0alpha2 using patch from https://github.com/php/pecl-caching-varnish/pull/3 re-license spec file to CECILL-2.1 --- varnish-pr3.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 varnish-pr3.patch (limited to 'varnish-pr3.patch') 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 +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 -- cgit