Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: PerlModule versus PerlLoadModule: msg#00205

apache.mod-perl.devel

Subject: Re: PerlModule versus PerlLoadModule


> That's exactly what will happen if a user will use PerlModule instead of
> PerlLoadModule at the moment. It'll silently fail.

yes. but in some circumstances the failure might not be silent - directive
handlers would fail because httpd would croak, for example. but you're
right, there is a danger.

> Meaning that you need
> to document that one needs to do:
>
> PerlLoadModule Foo
>
> which is just as well, could be documented as:
>
> PerlStartNow
> PerlModule Foo
>
> especially if we are going to add PerlStartNow anyway (are we?).

well, something about that strikes me as dangerous. PerlStartNow has no
clear utility. that is, everyone knows what <Perl> sections do, and
hopefully we could explain that PerlLoadModule would be for modules that
need to run init code. but PerlStartNow is kind of floating in the aether -
starting the interpreter on demand has no clear benefit or activity
associated with it.

> But I
> don't have any hard preferences. All I was saying is that if you remove
> the magickness of PerlLoadModule with regards to add_module, then the
> only remaining difference between PerlModule and PerlLoadModule is that
> the latter starts perl.

that's true, except that we can document it in terms of using it for modules
that need to interact with config-time activities, such as loading
directives into the server before other modules (like mod_authn_basic) get
the chance to start.

> And you can't really ensure that a user won't
> invoke your module via PerlModule.

I had thought about creating some kind of flag (local %ENV or package
variable) that would act as a flag in those circumstances. so a module could

die unless $Apache::Module::IsPerlLoadModule;

or something. I admit, it's a stretch, but some mechanism would be nice.

> Sure. I don't think we have any remaining disagreements here.

whew! :)

ok, I'll start working up a patch that will take directive handlers to the
next level. keep the ideas coming and we'll get something together that's
spiffy :)

--Geoff


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
version-control...    qnx.openqnx.dev...    redhat.rhn.user...    ietf.openpgp/20...    mail.mutt.user/...    web.microformat...    java.sync4j.use...    education.ezpro...    user-groups.blu...    solaris.manager...    org.fitug.debat...    technology.erps...    politics.activi...    linux.redhat.fe...    bug-tracking.ma...    xfce.user/2004-...    hams/2004-11/ms...    kde.users.pim/2...    culture.cooking...    freebsd.devel.x...    gnu.m4.adhoc/20...    ngpt.user/2002-...    apple.fink.deve...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation