On Thu, 3 May 2001, barries wrote:
> Are there any plans to fire up a perl interpreter at httpd -t time,
> perhaps with an implied addition of -c to PerlSwitches?
in 2.0 'httpd -t' will not run any Perl code. it might when <Perl>
sections are implemented, in which case would should be able to set
PL_minus_c = 1 (same as perl -c switch)
> I'm looking for cheap and easy ways to test Perl code without
> killing/launching a server.
>
> FWIW, I started down this trail because I have a button mapped to "perl
> -cw %" in my editor that I'm constantly and habitually hitting. This
> trips up because the Apache/*.so libs (of course) need to be pulled into
> a executable space with the symbols that they need.
you're talking 2.0, right? it will be made to work the same as 1.xx, only
bootstrapping the .so when inside httpd.
> I also saw a todo that ApacheFakeRequest "should be built in" and I'm
> wondering if that means you intend to have some sort of "httpd not
> required" mode of operation planned for code using Apache::*.
yeah, haven't thought about it too much. but, since APR can be used
outside of httpd, and we can alloc request_rec and similar structures, it
should be possible to bootstrap an inside-httpd interface and
outside-httpd interface. its not really worthwhile looking at until APR
actually installs its *.so or *.a libraries somewhere apxs can find
them. and, there's a bunch of util functions (e.g. URI stuff) that is
supposed to move from httpd into apr-util.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]