On 04/19/2013 03:02 PM, Guenter Knauf wrote: > On 10.04.2013 23:21, Guenter Knauf wrote: >> On 10.04.2013 23:01, fua...@apache.org wrote: >>> Author: fuankg >>> Date: Wed Apr 10 21:01:51 2013 >>> New Revision: 1466669 >>> >>> URL: http://svn.apache.org/r1466669 >>> Log: >>> Put this backport for now on hold to get some more >>> time for testing ... > >> ok, onward with some more testing ..... > now on r:strcmp_match(string, pattern) ... > > this script: > > function handle(r) > r.content_type = "text/plain" > > local match = r:strcmp_match("foobar.com", "foo*.com") > if match then > r:puts("foobar.com matches foo*.com") > end > end > > results in: > > Error! > > sys:/www/tstlua/not_working/strcmpmatch.lua:4: calling 'strcmp_match' on > bad self (string expected, got userdata) > > Gün. > > Same reply there, it's because some functions require the request_rec struct, while others don't, that may have thrown me off in the documentation. We could either fix the docs so it's r. in the right places instead of r:, but what we could also do is just silently discard the first argument, so we'll have r: across the board.
With regards, Daniel.