
stas at stason
Feb 11, 2003, 4:49 PM
Post #2 of 2
(363 views)
Permalink
|
Yuriy Syrota wrote: > Hello. > > The command_rec structure in Apache has a useful field named cmd_data. > Is there an analogous field in the @APACHE_MODULE_COMMANDS from > mod_perl2? Yup, it's called 'data' src/modules/perl/modperl_module.c:705 /* no default if undefined */ if (!(errmsg = modperl_module_cmd_fetch(aTHX_ obj, "data", &val))) { info->cmd_data = apr_pstrdup(p, SvPV(val, len)); } Since I was porting the existing docs and this field didn't exist in 1.0, I've missed it. A documentation patch and a small test (just extend one of the t/response/TestDirective/perlloadmodule*) is very appreciated. __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas [at] stason http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
|