79
pcre JIT compiling result: 1
79
--- grep_error_log eval
80
qr/pcre JIT compiling result: \d+/
82
--- grep_error_log_out eval
83
["pcre JIT compiling result: 1\n", ""]
100
pcre JIT compiling result: 1
104
--- grep_error_log eval
105
qr/pcre JIT compiling result: \d+/
107
--- grep_error_log_out eval
108
["pcre JIT compiling result: 1\n", ""]
124
132
--- response_body
125
error: failed to compile regex "(abc": pcre_compile() failed: missing ) in "(abc"
133
error: pcre_compile() failed: missing ) in "(abc"
139
=== TEST 6: just hit match limit
141
lua_regex_match_limit 2940;
144
content_by_lua_file html/a.lua;
149
local re = [==[(?i:([\s'\"`´’‘\(\)]*)?([\d\w]+)([\s'\"`´’‘\(\)]*)?(?:=|<=>|r?like|sounds\s+like|regexp)([\s'\"`´’‘\(\)]*)?\2|([\s'\"`´’‘\(\)]*)?([\d\w]+)([\s'\"`´’‘\(\)]*)?(?:!=|<=|>=|<>|<|>|\^|is\s+not|not\s+like|not\s+regexp)([\s'\"`´’‘\(\)]*)?(?!\6)([\d\w]+))]==]
151
s = string.rep([[ABCDEFG]], 21)
153
local start = ngx.now()
155
local res, err = ngx.re.match(s, re, "jo")
159
local elapsed = ngx.now() - start
160
ngx.say(elapsed, " sec elapsed.")
165
ngx.say("error: ", err)
168
ngx.say("failed to match")
175
error: pcre_exec() failed: -8
179
=== TEST 7: just not hit match limit
181
lua_regex_match_limit 2950;
184
content_by_lua_file html/a.lua;
189
local re = [==[(?i:([\s'\"`´’‘\(\)]*)?([\d\w]+)([\s'\"`´’‘\(\)]*)?(?:=|<=>|r?like|sounds\s+like|regexp)([\s'\"`´’‘\(\)]*)?\2|([\s'\"`´’‘\(\)]*)?([\d\w]+)([\s'\"`´’‘\(\)]*)?(?:!=|<=|>=|<>|<|>|\^|is\s+not|not\s+like|not\s+regexp)([\s'\"`´’‘\(\)]*)?(?!\6)([\d\w]+))]==]
191
s = string.rep([[ABCDEFG]], 21)
193
local start = ngx.now()
195
local res, err = ngx.re.match(s, re, "jo")
199
local elapsed = ngx.now() - start
200
ngx.say(elapsed, " sec elapsed.")
205
ngx.say("error: ", err)
208
ngx.say("failed to match")