feature: ngx.re.find() now accepts the optional 5th argument "nth" to control which submatch capture's indexes are returned. thanks Lance Li for the feature request in agentzh/lua-resty-core#1.
bugfix: ngx.re.find() did not return an error when the "nth" argument is out of bound.
bugfix: ngx.re.find: we incorrectly returned negative indexes for nil submatch captures; also we returned the "nth out of bound" when there was a trailing nil submatch capture.
bugfix: ngx.re.find: fixed the case when "nth" is greater than or equal to "rc" but not exceeds the number of captures.
documented the new "nth" argument for ngx.re.find.
bugfix: the linker option -E is not support in Cygwin's linker; we should test --export-all-symbols when -E is unavailable. thanks Heero Zhang for the report.
feature: added pure C API functions for FFI-based implementations for ngx.req.get_uri_args().
bugfix: fixed compiler warnings and errors when using the Microsoft Visual C++ compiler. thanks Edwin Cleton for the report.
fixed an issue in commit 8e6b4e3cb7: cygwin linker only issues a warning about the use of -E rather than an error, so our previous feature test for -E always succeeds. thanks Heero Zhang for the report.
feature: added pure C API for FFI-based implementations of the ngx.header.HEADER API (the write part).
refactor: made the main Lua VM state creation and initialization code detached from the configuration loading phase.
refactor: introduce the ngx_http_lua_get_main_lua_state function to abstract away where the global lua state is stored.
bugfix: turning off lua_code_cache could lead to memory issues (segfaults and LuaJIT assertion failures) when Lua libraries using LuaJIT FFI were loaded. now we always create clean separate lua VM instances for every Nginx request when the Lua code cache is disabled. thanks Ron Gomes for the report.
added more debugging logs to the (global) Lua VM instance managing code.
added more tests for "lua_code_cache off".
doc: updated the docs for lua_code_cache to reflect recent changes.
removed an unimportant subtest from 025-codecache.t.
doc: tweaked the wording for lua_code_cache a bit more.
better debugging logs for "lua_code_cache off" and better test cases.
bugfix: turning off lua_code_cache and using cosocket connection pools might lead to memory issues (like segfaults). this regression had appeared in commit 5fc80b5b0. thanks Zheng Ping for the report.