1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
From 5e800d53c8430aff7bc0e0422e7c86eea370570f Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Thu, 17 Jul 2025 15:07:36 +0200
Subject: [PATCH] use zend_ce_exception instead of zend_exception_get_default()
for 8.5
---
luasandbox.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/luasandbox.c b/luasandbox.c
index d4f71e7..4d65a26 100644
--- a/luasandbox.c
+++ b/luasandbox.c
@@ -247,7 +247,7 @@ PHP_MINIT_FUNCTION(luasandbox)
"PERCENT", sizeof("PERCENT")-1, LUASANDBOX_PERCENT);
INIT_CLASS_ENTRY(ce, "LuaSandboxError", luasandbox_empty_methods);
- luasandboxerror_ce = compat_zend_register_internal_class_ex(&ce, zend_exception_get_default());
+ luasandboxerror_ce = compat_zend_register_internal_class_ex(&ce, zend_ce_exception);
zend_declare_class_constant_long(luasandboxerror_ce,
"RUN", sizeof("RUN")-1, LUA_ERRRUN);
zend_declare_class_constant_long(luasandboxerror_ce,
--
2.50.1
|