]> granicus.if.org Git - php/commitdiff
add missing addref
authorAntony Dovgal <tony2001@php.net>
Tue, 29 Aug 2006 22:55:44 +0000 (22:55 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 29 Aug 2006 22:55:44 +0000 (22:55 +0000)
now it works fine

ext/pcre/php_pcre.c

index 34769d32a9638655b377496109e486f1a3182bb6..96a28c1da1057c61e0ebfa5c214cba5e80e46975 100644 (file)
@@ -839,6 +839,7 @@ PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, char *subject, int subjec
                                } else {
                                        zend_hash_update(Z_ARRVAL_P(subpats), subpat_names[i],
                                                                         strlen(subpat_names[i])+1, &match_sets[i], sizeof(zval *), NULL);
+                                       ZVAL_ADDREF(match_sets[i]);
                                }
                        }
                        zend_hash_next_index_insert(Z_ARRVAL_P(subpats), &match_sets[i], sizeof(zval *), NULL);