3 Commits

Author SHA1 Message Date
Jean-Baptiste Nahan
e16624fd1c check php version 2025-10-06 17:54:19 +02:00
Jean-Baptiste Nahan
44a0c089ca Fix PHP 8.5 build 2025-10-06 17:50:34 +02:00
Xinchen Hui
a6c5162a7c Back to dev 2020-03-10 11:09:56 +08:00
2 changed files with 5 additions and 2 deletions

5
lua.c
View File

@@ -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;
}

View File

@@ -48,7 +48,7 @@ extern zend_module_entry lua_module_entry;
#define LUA_G(v) (lua_globals.v)
#endif
#define PHP_LUA_VERSION "2.0.7"
#define PHP_LUA_VERSION "2.0.8-dev"
struct _php_lua_object {
lua_State *L;