mod_perl logo
perl icon







previous page: ModPerl::RegistryLoader - Compile ModPerl::RegistryCooker scripts at server startuppage up: mod_perl APIsnext page: Apache::porting -- a helper module for mod_perl 1.0 to mod_perl 2.0 porting


ModPerl::Util - Helper mod_perl 2.0 Functions











The mod_perl Developer's Cookbook

The mod_perl Developer's Cookbook

By Geoffrey Young, Paul Lindner, Randy Kobes
mod_perl Pocket Reference

mod_perl Pocket Reference

By Andrew Ford
Writing Apache Modules with Perl and C

Writing Apache Modules with Perl and C

By Lincoln Stein, Doug MacEachern


Table of Contents

Synopsis

  use ModPerl::Util;
  
  $callback = Apache::current_callback;
  
  ModPerl::Util::exit();
  
  ModPerl::Util::untaint($) # secret API?


TOP

Description

ModPerl::Util provides mod_perl 2.0 util functions.



TOP

API

ModPerl::Util provides the following functions and/or methods:



TOP

untaint

Untaint the variable, by turning its tainted bit off (used internally).

  untaint($var);

Do not use this function unless you know what you are doing. To learn how to properly untaint variables refer to the perlsec manpage.



TOP

current_callback

Returns the currently running callback, like 'PerlResponseHandler'.

  $callback = Apache::current_callback();


TOP

exit

Used internally to replace CORE::exit and terminate the request, not the current process.

  ModPerl::Util::exit($status);


TOP

See Also

mod_perl 2.0 documentation.



TOP

Copyright

mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 1.1.



TOP

Authors

The mod_perl development team and numerous contributors.







TOP
previous page: ModPerl::RegistryLoader - Compile ModPerl::RegistryCooker scripts at server startuppage up: mod_perl APIsnext page: Apache::porting -- a helper module for mod_perl 1.0 to mod_perl 2.0 porting