summaryrefslogtreecommitdiff
path: root/ext/sybase_ct/php_sybase_ct.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-10-23 15:21:20 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-10-23 15:21:20 +0000
commit4cc23cf49d9b4899331c3dbefe810f25d6b046ce (patch)
tree0b59fd40fe65d737e891e0269c22667ad8b46474 /ext/sybase_ct/php_sybase_ct.c
parent1530fe99c8e504603dcc5fef555d331066827539 (diff)
downloadphp-git-4cc23cf49d9b4899331c3dbefe810f25d6b046ce.tar.gz
Fixed bug #43074 (attempt to increment refcount outside of the macro)
Diffstat (limited to 'ext/sybase_ct/php_sybase_ct.c')
-rw-r--r--ext/sybase_ct/php_sybase_ct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sybase_ct/php_sybase_ct.c b/ext/sybase_ct/php_sybase_ct.c
index 572cc199bc..c9fa3eec79 100644
--- a/ext/sybase_ct/php_sybase_ct.c
+++ b/ext/sybase_ct/php_sybase_ct.c
@@ -1799,7 +1799,7 @@ static void php_sybase_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int numerics)
}
if (numerics) {
zend_hash_index_update(Z_ARRVAL_P(return_value), i, (void *) &tmp, sizeof(zval *), NULL);
- tmp->refcount++;
+ Z_ADDREF_P(tmp);
}
if (zend_hash_exists(Z_ARRVAL_P(return_value), result->fields[i].name, strlen(result->fields[i].name)+1)) {