From 4cc23cf49d9b4899331c3dbefe810f25d6b046ce Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 23 Oct 2007 15:21:20 +0000 Subject: Fixed bug #43074 (attempt to increment refcount outside of the macro) --- ext/sybase_ct/php_sybase_ct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/sybase_ct/php_sybase_ct.c') 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)) { -- cgit v1.2.1