perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe M. Chiasson" <go...@ectoplasm.org>
Subject Re: A question about the post_config phase mod_perl handler
Date Mon, 12 Nov 2007 23:10:39 GMT
Boysenberry Payne wrote:
> In the example at:
> http://perl.apache.org/docs/2.0/user/handlers/ 
> server.html#C_PerlPostConfigHandler_
> 
> the PerlPostConfigHandler subroutine returns Apache2::Const::OK.
> 
> I was wondering if it mattered what it returned, and if so, what are  
> the alternatives?

It matters, only OK is a valid return value from that stage. Otherwise,
you'll get this helpfull error message:

[error] Callback 'MyCallback' returned 404, whereas Apache2::Const::OK (0) is the only valid
return value for PerlPostConfigHandler handlers

-- 
Philippe M. Chiasson     GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/       m/gozer\@(apache|cpan|ectoplasm)\.org/


Mime
View raw message