Hello!
On Thu, Apr 28, 2016 at 4:12 AM, playerzhj wrote:
> 具体步骤:
> 1、编译lrexlib 2.8成功。
> 2、使用luajit-2.1.0-beta1执行以下程序成功。
>
应该尽量避免在 OpenResty 的上下文中使用 lrexlib 这样的第三方的 PCRE 绑定库,因为 nginx 托管了 PCRE
的分配方式。在内存分配上可能会出现问题。OpenResty 自己提供了 PCRE 的 Lua API,结合 lua-resty-core
库还能被 LuaJIT 真正地 JIT 编译,应尽量使用原生的 ngx.re 接口:
https://github.com/openresty/lua-nginx-module/#ngxrematch
仅供参考。
Regards,
-agentzh