Bug 51001

Summary: patch for hook ap_lua_run_lua_open
Product: Apache httpd-2 Reporter: zhiguo zhao <zhaozg>
Component: mod_luaAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEEDINFO ---    
Severity: normal CC: jim
Priority: P2 Keywords: PatchAvailable
Version: 2.4-HEAD   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: patch for hook ap_lua_run_lua_open

Description zhiguo zhao 2011-03-31 02:21:32 UTC
Created attachment 26819 [details]
patch for hook ap_lua_run_lua_open

This patch will make lua_open hooks available, that's important to extend moa_lua lua functions provider by other modules.

patch is very clear, please look attach file.
Comment 1 Jim Jagielski 2016-11-22 20:31:45 UTC
Why the removal of:

   lua_open_callback(L, p, NULL);

??
Comment 2 zhiguo zhao 2016-11-23 03:27:25 UTC
lua_open_callback should be remove from lua_open_hook, because lua_open_callback be called in vm_construct().

1. create_vm_spec set lua_open_callback to spec->cb;
2. vm_construct() call spec->cb;