mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
Fixed bug #43074 (attempt to increment refcount outside of the macro)
This commit is contained in:
parent
1530fe99c8
commit
4cc23cf49d
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user