mirror of
https://github.com/php-win-ext/php-lua.git
synced 2026-03-26 10:02:09 +01:00
Compare commits
2 Commits
master
...
macintoshp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e16624fd1c | ||
|
|
44a0c089ca |
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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user