NAME
ModPerl::Util - Helper mod_perl 2.0 Functions
Synopsis
use ModPerl::Util;
$callback = Apache::current_callback;
ModPerl::Util::exit();
ModPerl::Util::untaint($) # secret API?
Description
ModPerl::Util
provides mod_perl 2.0 util functions.
API
ModPerl::Util
provides the following functions and/or methods:
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.
current_callback
Returns the currently running callback, like 'PerlResponseHandler'.
$callback = Apache::current_callback();
exit
Used internally to replace CORE::exit
and terminate the request, not the current process.
ModPerl::Util::exit($status);
- opt arg1:
$status
(integer) -
The exit status, similar to
CORE::exit
. If not passed, the default value of 0 is used. - ret: no return value
See Also
Copyright
mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 1.1.