Re: 3.0.5 beta

[email protected] (Rasmus Lerdorf) Sun, 04 Oct 1998 12:28:52 -0400 (Eastern Daylight Time)
Newsgroups php.beta
Message-ID <[email protected]>
> >There is a name clash between Apache and Postgres' Libpq (C frontend)
> >which results in a warning. palloc is defined in libpq-fe.h and
> >ap_compat.h (this isn't a result of a failure in PHP, of course).
> 
> It should be ok.

I think we should fix this.  Apache went to the trouble of renaming all
internal functions to ap_*.  We are remapping them back to the non ap_*
names with ap_compat.h in order to be compatible with Apache 1.2.x.  We
can make a special case out of palloc and do a MODULE_MAGIC_NUMBER check
and call ap_palloc() if the version of Apache is recent enough.  That will
get rid of that warning for all Apache 1.3.x systems at least.

-Rasmus