Stas Bekman wrote:
Geoffrey Young wrote:

is there a non-official way to exit? yes, exit() is exactly that. So exit() is not good. It has to be ModPerl::Util::exit(). It's only imported by default for registry script.



I thought it was aliased everywhere and you needed to call CORE::exit() to get the "bad" exit. just going from memory, though.


Ooops, you are right

src/modules/perl/modperl_perl.c: MP_PERL_CORE_GLOBAL_ENT("exit"),

So what are the other non-official ways to exit? CORE::exit()?

right, though that will do a little more than throw 500 :)


I guess the un-official ways are implied return values, such as perl returning the value from the last call (whatever that is).

so, I guess we could say

callbacks are now expected to return a meaningful value (OK, SERVER_ERROR, etc) or return via an official API (exit, die, etc). relying on implicit returns from the last call evaluated by a subroutine may result in server errors. see perlsub.

but I don't know that makes things any clearer. probably for Changes it's better to be as simple as possible, leaving the rest up to the docs and examples.

--Geoff


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to