cvs: php-src /ext/pcre php_pcre.c
| From: | Antony Dovgal | Date: | Tue, 03 Oct 2006 20:42:58 +0000 |
| Subject: | cvs: php-src /ext/pcre php_pcre.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-40881@lists.php.net to get a copy of this message | ||
tony2001 Tue Oct 3 20:42:58 2006 UTC
Modified files:
/php-src/ext/pcre php_pcre.c
Log:
don't forget to increase refcount when adding entry to the return_value
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/php_pcre.c?r1=1.203&r2=1.204&diff_format=u
Index: php-src/ext/pcre/php_pcre.c
diff -u php-src/ext/pcre/php_pcre.c:1.203 php-src/ext/pcre/php_pcre.c:1.204
--- php-src/ext/pcre/php_pcre.c:1.203 Tue Sep 19 20:41:56 2006
+++ php-src/ext/pcre/php_pcre.c Tue Oct 3 20:42:57 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pcre.c,v 1.203 2006/09/19 20:41:56 andrei Exp $ */
+/* $Id: php_pcre.c,v 1.204 2006/10/03 20:42:57 tony2001 Exp $ */
/* TODO
* php_pcre_replace_impl():
@@ -1868,6 +1868,7 @@
/* If the entry fits our requirements */
if ((count > 0 && !invert) ||
(count == PCRE_ERROR_NOMATCH && invert)) {
+ (*entry)->refcount++;
/* Add to return array */
switch (zend_hash_get_current_key_ex(Z_ARRVAL_P(input), &string_key, &string_key_len,
&num_key, 0, NULL))