diff options
Diffstat (limited to 'ext/pgsql')
-rw-r--r-- | ext/pgsql/pgsql.c | 6 | ||||
-rw-r--r-- | ext/pgsql/php_pgsql.h (renamed from ext/pgsql/php3_pgsql.h) | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index cff75b9a0e..868b1d002f 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -26,8 +26,8 @@ #endif #include "php.h" -#include "php3_pgsql.h" -#include "ext/standard/php3_standard.h" +#include "php_pgsql.h" +#include "ext/standard/php_standard.h" #include "php_globals.h" #if HAVE_PGSQL @@ -331,7 +331,7 @@ void php3_pgsql_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent) if (index_ptr->type != le_index_ptr) { RETURN_FALSE; } - link = (int) index_ptr->ptr; + link = (int) (long) index_ptr->ptr; ptr = php3_list_find(link,&type); /* check if the link is still there */ if (ptr && (type==le_link || type==le_plink)) { return_value->value.lval = PGG(default_link) = link; diff --git a/ext/pgsql/php3_pgsql.h b/ext/pgsql/php_pgsql.h index 637fe44e5f..0397ab9a9e 100644 --- a/ext/pgsql/php3_pgsql.h +++ b/ext/pgsql/php_pgsql.h @@ -29,8 +29,8 @@ /* $Id$ */ -#ifndef _PHP3_PGSQL_H -#define _PHP3_PGSQL_H +#ifndef _PHP_PGSQL_H +#define _PHP_PGSQL_H #if COMPILE_DL #undef HAVE_PGSQL @@ -147,4 +147,4 @@ extern PHP_PGSQL_API php_pgsql_globals pgsql_globals; #define phpext_pgsql_ptr pgsql_module_ptr -#endif /* _PHP3_PGSQL_H */ +#endif /* _PHP_PGSQL_H */ |