[PHP-DEV] PHP 4.0 Bug #3056: Wrong includes in ext/pgsql/php3_pgsql.h From: php <email protected>
Date: 12/28/99

From: php <email protected>
Operating system: RH 6.0 i386
PHP version: 4.0 Beta 3
PHP Bug Type: Compile Failure
Bug description: Wrong includes in ext/pgsql/php3_pgsql.h

php didn't compile because non-existing files were included in ext/pgsql/php3_pgsql.h. The postgresql-devel-6.5-1.rpm includes:
/usr/include/pgsql/libpq-fe.h
/usr/include/pgsql/libpq-int.h
/usr/include/pgsql/libpq/libpq-fs.h

I believe postgres changed the names of theese files in the 6.5 release - so the problem is probably not RedHat specific.

--- php-4.0b3/ext/pgsql/php3_pgsql.h.orig Tue Dec 28 13:51:20 1999
+++ php-4.0b3/ext/pgsql/php3_pgsql.h Tue Dec 28 13:51:45 1999
@@ -43,8 +43,8 @@
 #define pgsql_module_ptr &pgsql_module_entry

-#include <libpq-fe.h>
-#include <libpq/libpq-fs.h>
+#include <pgsql/libpq-fe.h>
+#include <pgsql/libpq/libpq-fs.h>

 extern int php3_minit_pgsql(INIT_FUNC_ARGS);
 extern int php3_rinit_pgsql(INIT_FUNC_ARGS);

-- 
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>