> AFAIK there is no need for you to be including <postgres.h> in *any*
> Postgres release --- it's supposed to be an internal header file,
> not something that client applications need. Try it with just
/home/sas/src/php4/ext/pgsql/pgsql.c: In function `php_if_pg_getlastoid':
/home/sas/src/php4/ext/pgsql/pgsql.c:1260: `InvalidOid' undeclared (first use in this
function)
/home/sas/src/php4/ext/pgsql/pgsql.c:1260: (Each undeclared identifier is reported
only once
/home/sas/src/php4/ext/pgsql/pgsql.c:1260: for each function it appears in.)
InvalidOid is used to check the return value of PQoidValue().
src/interfaces/libpq/fe-exec.c:PQoidValue() can return
InvalidOid, so this appears like a legitimate use to me.
Feel free to correct me though, I have not used the C fe
before.
- Sascha
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Larry Rosenman
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Sascha Schumann
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Larry Rosenman
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Sascha Schumann
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Larry Rosenman
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Sascha Schumann
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Tom Lane
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Bruce Momjian
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Sascha Schumann
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Tom Lane
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Sascha Schumann
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Larry Rosenman
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Tom Lane
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Larry Rosenman
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Larry Rosenman
- old include files (was Re: [HACKERS] PHP 4.0.4pl1 / Beta ... Tom Lane
- Re: old include files (was Re: [HACKERS] PHP 4.0.4pl1 / B... Lamar Owen
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Larry Rosenman
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Tom Lane
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Bruce Momjian
- Re: [HACKERS] PHP 4.0.4pl1 / Beta 5 Peter Eisentraut
