Date: 02/18/01
- Next message: ler <email protected>: "[PHP-DEV] PHP 4.0 Bug #9328 Updated: ext/pgsql/php_pgsql.h needs to include postgres_fe.h not postgres.h"
- Previous message: graf <email protected>: "[PHP-DEV] PHP 4.0 Bug #9327: Request to php.exe generates two Failure Audit Object Access errors in NT log"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: ler <email protected>
Operating system: UnixWare 7.1.1
PHP version: 4.0.4pl1
PHP Bug Type: PostgreSQL related
Bug description: ext/pgsql/php_pgsql.h needs to include postgres_fe.h not postgres.h
Starting with PostgreSQL 7.1beta5 (or current CVS), PHP's pgsql
extension needs to only include <postgres_fe.h> to compile.
Here is a patch:
Index: php_pgsql.h
===================================================================
RCS file: /cvsroot/php/ext/pgsql/php_pgsql.h,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 php_pgsql.h
*** php_pgsql.h 2000/12/23 23:05:41 1.1.1.2
--- php_pgsql.h 2001/02/18 21:15:45
***************
*** 29,35 ****
#ifdef PHP_PGSQL_PRIVATE
#undef SOCKET_SIZE_TYPE
! #include <postgres.h>
#include <libpq-fe.h>
#ifdef PHP_WIN32
--- 29,35 ----
#ifdef PHP_PGSQL_PRIVATE
#undef SOCKET_SIZE_TYPE
! #include <postgres_fe.h>
#include <libpq-fe.h>
#ifdef PHP_WIN32
-- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: ler <email protected> US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749$
-- Edit Bug report at: http://bugs.php.net/?id=9328&edit=1
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: ler <email protected>: "[PHP-DEV] PHP 4.0 Bug #9328 Updated: ext/pgsql/php_pgsql.h needs to include postgres_fe.h not postgres.h"
- Previous message: graf <email protected>: "[PHP-DEV] PHP 4.0 Bug #9327: Request to php.exe generates two Failure Audit Object Access errors in NT log"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

