On Tue, 19 Jun 2001, Geoffrey Young wrote:
> I was able to come up with the below module that allows you to use
> Apache::Util outside of Apache.
cool.
> So, my questions are:
> will the ap/apr split make this type of thing unnecessary in 2.0?
we still need something to load the apr libraries outside of httpd, which
is done by xs/APR/APR/*.*
> then (if you have the tuits)
> is this approach reasonable?
> not being too familiar with shared objects, does it make sense that
> some of the functions core dump - it seems to be any that call ap_palloc
you should be able to create an Apache::libhttpd module along the lines of
the xs/APR/APR stuff. then rather than call the bootstrap yourself, just
set $ENV{MOD_PERL} in libhttpd.pm and 'use Apache::Util ()' should work.
and will probably need to dig around http_main.c:standalone_main() to see
what things need to be initialized, like for using pools.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]