Re: Upgrading a mod_perl application from Apache 2.2 to Apache 2.4
William A Rowe Jr <[email protected]>
| Newsgroups | gmane.comp.apache.mod-perl |
|---|---|
| Message-ID | <CACsi252b6qeA+h=YXNQBip6LnYMSEC-Qo+uTWcfEHCxfqYu-tQ@mail.gmail.com> |
On Thu, Dec 6, 2018 at 3:34 PM Andrew Green <[email protected]> wrote: > Hi William, > > But you are better off looking at; > > http://perl.apache.org/docs/2.0/api/Apache2/ServerUtil.html#C_get_server_version_ > > which returns nothing except exactly what you are asking. > > > I did try this (and it worked fine) — but I kept seeing the following > error pop up in the logs: > > *ap_get_server_version() is deprecated since httpd/2.3.0 try using > ap_get_server_(description|banner)() instead* > > So I switched to banner. I’ll see about switching again to description. > Ahhh, ok, just be aware the get_server_description call doesn't exist in 2.2, you need to perform a little eval() magic to guard against that expected failure.