]> granicus.if.org Git - php/commitdiff
Fixed bug #43074 (attempt to increment refcount outside of the macro)
authorIlia Alshanetsky <iliaa@php.net>
Tue, 23 Oct 2007 15:21:20 +0000 (15:21 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 23 Oct 2007 15:21:20 +0000 (15:21 +0000)
ext/sybase_ct/php_sybase_ct.c

index 572cc199bceed065951cea181f61f8156ef26634..c9fa3eec79114f640d27e60af850814b91530074 100644 (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)) {