tony2001                Tue Aug 29 22:55:44 2006 UTC

  Modified files:              
    /php-src/ext/pcre   php_pcre.c 
  Log:
  add missing addref
  now it works fine
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/php_pcre.c?r1=1.194&r2=1.195&diff_format=u
Index: php-src/ext/pcre/php_pcre.c
diff -u php-src/ext/pcre/php_pcre.c:1.194 php-src/ext/pcre/php_pcre.c:1.195
--- php-src/ext/pcre/php_pcre.c:1.194   Tue Aug 29 22:52:37 2006
+++ php-src/ext/pcre/php_pcre.c Tue Aug 29 22:55:44 2006
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_pcre.c,v 1.194 2006/08/29 22:52:37 andrei Exp $ */
+/* $Id: php_pcre.c,v 1.195 2006/08/29 22:55:44 tony2001 Exp $ */
 
 /* UTODO
  *  - PCRE_NO_UTF8_CHECK option for Unicode strings
@@ -839,6 +839,7 @@
                                } 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);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to