Fixed bug #43074 (attempt to increment refcount outside of the macro)

This commit is contained in:
Ilia Alshanetsky 2007-10-23 15:21:20 +00:00
parent 1530fe99c8
commit 4cc23cf49d

View File

@ -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)) {