summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2001-01-31 21:53:30 +0000
committerAndi Gutmans <andi@php.net>2001-01-31 21:53:30 +0000
commit0611acb910003f86287f0a0e0163f42bce9b1e62 (patch)
tree87335d3f9655cf576be5cdd1f7f2552ba03e0de6 /ext/pgsql/pgsql.c
parent00b84703f8447c1d68943322038ce25030f6aa0e (diff)
downloadphp-git-0611acb910003f86287f0a0e0163f42bce9b1e62.tar.gz
- Change unset() functions to null(). unset() is legacy
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r--ext/pgsql/pgsql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 4962ca92bc..5ee40eebaf 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -1049,11 +1049,11 @@ static void php_pgsql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
for (i = 0, num_fields = PQnfields(pgsql_result); i<num_fields; i++) {
if (PQgetisnull(pgsql_result, Z_LVAL_PP(row), i)) {
if (result_type & PGSQL_NUM) {
- add_index_unset(return_value, i);
+ add_index_null(return_value, i);
}
if (result_type & PGSQL_ASSOC) {
field_name = PQfname(pgsql_result, i);
- add_assoc_unset(return_value, field_name);
+ add_assoc_null(return_value, field_name);
}
} else {
element = PQgetvalue(pgsql_result, Z_LVAL_PP(row), i);