mirror of
https://github.com/php-win-ext/php-lua.git
synced 2026-03-26 18:12:17 +01:00
Compare commits
3 Commits
lua-2.0.7
...
macintoshp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e16624fd1c | ||
|
|
44a0c089ca | ||
|
|
a6c5162a7c |
5
lua.c
5
lua.c
@@ -867,8 +867,11 @@ PHP_MINIT_FUNCTION(lua) {
|
|||||||
php_lua_closure_register();
|
php_lua_closure_register();
|
||||||
|
|
||||||
INIT_CLASS_ENTRY(ce, "LuaException", NULL);
|
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());
|
lua_exception_ce = zend_register_internal_class_ex(&ce, zend_exception_get_default());
|
||||||
|
#endif
|
||||||
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ extern zend_module_entry lua_module_entry;
|
|||||||
#define LUA_G(v) (lua_globals.v)
|
#define LUA_G(v) (lua_globals.v)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PHP_LUA_VERSION "2.0.7"
|
#define PHP_LUA_VERSION "2.0.8-dev"
|
||||||
|
|
||||||
struct _php_lua_object {
|
struct _php_lua_object {
|
||||||
lua_State *L;
|
lua_State *L;
|
||||||
|
|||||||
Reference in New Issue
Block a user