gozer 2004/09/09 15:39:13 Modified: src/docs/2.0/api/Apache CmdParms.pod Log: Added Apache::CmdParms::add_config() to work around a memory leak discovered with <Perl> sections in .htaccess files Revision Changes Path 1.10 +30 -1 modperl-docs/src/docs/2.0/api/Apache/CmdParms.pod Index: CmdParms.pod =================================================================== RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/Apache/CmdParms.pod,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- CmdParms.pod 17 Aug 2004 23:40:57 -0000 1.9 +++ CmdParms.pod 9 Sep 2004 22:39:13 -0000 1.10 @@ -13,6 +13,9 @@ sub MyDirective { my($self, $parms, $args) = @_; + # push config + $parms->add_config(['ServerTokens off']); + # this command's command object $cmd = $parms->cmd; @@ -65,6 +68,32 @@ +=head2 C<add_config> + +Dynamically add Apache configuration at request processing runtime: + + $parms->add_config($lines); + +=over 4 + +=item obj: C<$parms> +( C<L<Apache::CmdParms object|docs::2.0::api::Apache::CmdParms>> ) + +=item arg1: C<$lines> (ARRAY ref) + +An ARRAY reference containing configuration lines per element, without +the new line terminators. + +=item ret: no return value + +=item since: 1.99_17 + +=back + +See also: +C<L<$s-E<gt>add_config|docs::2.0::api::Apache::ServerUtil/C_add_config_>>, +C<L<$r-E<gt>add_config|docs::2.0::api::Apache::RequestUtil/C_add_config_>> + =head2 C<cmd> This module's command information @@ -79,7 +108,7 @@ =item ret: C<$cmd> ( C<L<Apache::Command object|docs::2.0::api::Apache::Command>> ) -=item since: 1.99_12 +=item since: 1.99_17 =back
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]