Skip to content

Implement support for Lua 5.1 #1814

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

p0pr0ck5
Copy link
Contributor

No description provided.


lua_pop(L, nup); /* remove upvalues */
}
#endif

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the intent is to eventually promote support for LuaJIT with this PR (totally speculating here), but if so, and if I recall correctly, some versions of LuaJIT define LUA_VERSION_NUM as 501 and implement luaL_setfuncs. Should we follow Mike's advice here? See:

https://www.freelists.org/post/luajit/ANN-LuaJIT210beta3,3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this isn't a goal nor a long-term goal of this PR, then feel free to ignore this!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @thibaultcha, the goal here is just to get support for 5.1 introduced. Trying to integrate with OpenResty was a bit of an exercise (see #1809), and there's no clean way to do it at this point (it was also the initial impetus for this PR). Eventually LuaJIT support might be nice, but since a number of distros only provide Lua lib packages for 5.1 out of the box, getting 5.1 supported is the sole goal here. As such I'd rather not introduce new symbols unnecessarily and increase the scope of this change.

If there's a large push for LuaJIT support here, perhaps we can revisit in the future, but at this point I do not see much value for that.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an attempt to support LuaJIT on some distros at #1854. You might want to give it a try to see if it works for you @thibaultcha.

@p0pr0ck5
Copy link
Contributor Author

@victorhora @zimmerle any movement here?

@victorhora victorhora self-assigned this Jul 25, 2018
victorhora added a commit that referenced this pull request Jul 27, 2018
@victorhora victorhora self-requested a review July 27, 2018 19:49
@victorhora victorhora added enhancement 3.x Related to ModSecurity version 3.x labels Jul 27, 2018
@victorhora victorhora added this to the v3.0.3 milestone Jul 27, 2018
@victorhora
Copy link
Contributor

All good, merged at dee9898. Thanks @p0pr0ck5 :)

@victorhora victorhora closed this Jul 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Related to ModSecurity version 3.x enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants