diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 70a78643fa54a..98e4e2af4a0e3 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -2000,7 +2000,7 @@ PHP_FUNCTION(pg_fetch_object) PHP_FUNCTION(pg_fetch_all) { zval *result; - long result_type = PGSQL_ASSOC; + zend_long result_type = PGSQL_ASSOC; PGresult *pgsql_result; pgsql_result_handle *pg_result; @@ -5896,7 +5896,7 @@ PHP_FUNCTION(pg_select) char *table; size_t table_len; zend_ulong option = PGSQL_DML_EXEC; - long result_type = PGSQL_ASSOC; + zend_long result_type = PGSQL_ASSOC; PGconn *pg_link; zend_string *sql = NULL;