httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject Re: version stuff in Host header and mod_perl!?
Date Tue, 23 Mar 1999 21:54:09 GMT
I seem to recall seeing this kind of thing happen when the "init"
function is called at different times.

mod_dav does it in the init() step.

Where does Perl do it? Is there anything about mod_perl that makes it
get called earlier than other modules?

Cheers,
-g

Jim Jagielski wrote:
> 
> Hmmm... I'm guess ing that ap_v is a pointer to server_version?
> does it do something weird what that? ap_set_version is obviously
> being called...
> 
> James H. Cloos Jr. wrote:
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > I get this as my string:
> >
> >   Server: mod_perl/1.18_01-dev Apache/1.3.5-dev (Unix) PHP/3.0.8-dev
> >
> > Both are compiled via apxs on this box.  Apache is compiled w/ shared=max.
> >
> > mod_perl.c says:
> >
> > #if MODULE_MAGIC_NUMBER >= 19980507
> >     if (!strstr(ap_v, MOD_PERL_STRING_VERSION) && strnEQ(ap_v,"Apache/",7))
{
> >         ap_add_version_component(MOD_PERL_STRING_VERSION);
> >         if(PERL_RUNNING()) {
> >             if(perl_get_sv("Apache::Server::AddPerlVersion", FALSE)) {
> >                 ap_add_version_component(form("Perl/%s", patchlevel));
> >             }
> >         }
> >     }
> > #endif
> >
> > As a comparison, mod_php3.c says:
> >
> > #if MODULE_MAGIC_NUMBER >= 19980527
> >         ap_add_version_componentq("PHP/" PHP_VERSION);
> > #endif
> >
> > - -JimC
> > - --
> > James H. Cloos, Jr.  <http://www.jhcloos.com/cloos/public_key> 1024D/ED7DAEA6
> > <cloos@jhcloos.com>     E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v0.9.5 (GNU/Linux)
> > Comment: For info see http://www.gnupg.org
> >
> > iD8DBQE2+AHumXqfF+19rqYRAtXiAJ4qdPRXZ3MHfu9vrv/DBYPi9q177wCeJ5ff
> > QsdbFArhRFl/V96mB6Xx+XY=
> > =g+lF
> > -----END PGP SIGNATURE-----
> >
> 
> --
> ===========================================================================
>    Jim Jagielski   |||   jim@jaguNET.com   |||   http://www.jaguNET.com/
>             "That's no ordinary rabbit... that's the most foul,
>             cruel and bad-tempered rodent you ever laid eyes on"

--
Greg Stein, http://www.lyra.org/

Mime
View raw message