Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lua.c
Original file line number Diff line number Diff line change
Expand Up @@ -867,8 +867,11 @@ PHP_MINIT_FUNCTION(lua) {
php_lua_closure_register();

INIT_CLASS_ENTRY(ce, "LuaException", NULL);

#if PHP_VERSION_ID >= 80500
lua_exception_ce = zend_register_internal_class_ex(&ce, zend_ce_exception);
#else
lua_exception_ce = zend_register_internal_class_ex(&ce, zend_exception_get_default());
#endif

return SUCCESS;
}
Expand Down