From: Antony Dovgal Date: Tue, 29 Aug 2006 22:55:44 +0000 (+0000) Subject: add missing addref X-Git-Tag: RELEASE_1_0_0RC1~1852 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c96c1465d82b9e12b1cddffe45692a005df4c469;p=php add missing addref now it works fine --- diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 34769d32a9..96a28c1da1 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -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);