Re: [PHP-DEV] Re: Bug #323 Updated: Warning 'palloc' redefined From: rasmus <email protected>
Date: 04/29/98

> On 29 Apr 1998, Bug Database wrote:
>
> > ID: 323
> > Updated by: zeev
> > Reported By: doussot <email protected>
> > Status: Closed
> > Bug Type: PostgreSQL related
> > Assigned To:
> > Comments:
> >
> > This is *probably* safe, but if it isn't, there's
> > nothing much we can do about it. It's a clash between
> > a PostgresSQL function and an Apache function.
> >
>
> Wasn't the symbols renaming in apache 1.3 suposed to fix such
> issues ? As far as I understand, apache code never uses "palloc" but
> ap_palloc. "palloc" is only defined in apache-1.3/src/include/compat.h .Is
> it really necessary to include this file with apache 1.3 ?

Yes, it is necessary because the whole world is not running Apache-1.3b6
and I do not feel like wrapping every single Apache API call in PHP like so:

  #if MODULE_MAGIC_NUMBER > XXX
  ap_palloc()
  #else
  palloc()
  #endif

At least, not at this stage. And you are right, the API renaming in 1.3 is
there to fix this problem.

-Rasmus