summaryrefslogtreecommitdiff
path: root/ext/odbc/php_odbc.c
diff options
context:
space:
mode:
authorYiduo (David) Wang <davidw@php.net>2007-10-07 05:15:07 +0000
committerYiduo (David) Wang <davidw@php.net>2007-10-07 05:15:07 +0000
commit95da0dc5700ee9d41f1e5664c8167cd37023dbd3 (patch)
treee4c6288af1a3f260bbd705c83c397741233d60ea /ext/odbc/php_odbc.c
parentd20f6ecac8e2db5b0595c4fdef4cae221594ab88 (diff)
downloadphp-git-95da0dc5700ee9d41f1e5664c8167cd37023dbd3.tar.gz
Added macros for managing zval refcounts and is_ref statuses
Diffstat (limited to 'ext/odbc/php_odbc.c')
-rw-r--r--ext/odbc/php_odbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index 17a0a092c7..a5b6ff317a 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -1568,7 +1568,7 @@ PHP_FUNCTION(odbc_fetch_into)
for(i = 0; i < result->numcols; i++) {
ALLOC_ZVAL(tmp);
- tmp->refcount = 1;
+ Z_SET_REFCOUNT_P(tmp, 1);
Z_TYPE_P(tmp) = IS_STRING;
Z_STRLEN_P(tmp) = 0;
sql_c_type = SQL_C_CHAR;