diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2007-10-23 15:21:20 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2007-10-23 15:21:20 +0000 |
commit | 4cc23cf49d9b4899331c3dbefe810f25d6b046ce (patch) | |
tree | 0b59fd40fe65d737e891e0269c22667ad8b46474 /ext/sybase_ct/php_sybase_ct.c | |
parent | 1530fe99c8e504603dcc5fef555d331066827539 (diff) | |
download | php-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.c | 2 |
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)) { |