moriyoshi Sat Sep 13 02:32:51 2008 UTC
Modified files:
/php-src/ext/mbstring php_mbregex.c
Log:
- Properly initialize/finalize the library. This plugs the leaks caused by
onig_new().
http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/php_mbregex.c?r1=1.65&r2=1.66&diff_format=u
Index: php-src/ext/mbstring/php_mbregex.c
diff -u php-src/ext/mbstring/php_mbregex.c:1.65
php-src/ext/mbstring/php_mbregex.c:1.66
--- php-src/ext/mbstring/php_mbregex.c:1.65 Mon Aug 18 00:36:03 2008
+++ php-src/ext/mbstring/php_mbregex.c Sat Sep 13 02:32:51 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_mbregex.c,v 1.65 2008/08/18 00:36:03 felipe Exp $ */
+/* $Id: php_mbregex.c,v 1.66 2008/09/13 02:32:51 moriyoshi Exp $ */
#ifdef HAVE_CONFIG_H
@@ -114,6 +114,7 @@
/* {{{ PHP_MINIT_FUNCTION(mb_regex) */
PHP_MINIT_FUNCTION(mb_regex)
{
+ onig_init();
return SUCCESS;
}
/* }}} */
@@ -121,6 +122,7 @@
/* {{{ PHP_MSHUTDOWN_FUNCTION(mb_regex) */
PHP_MSHUTDOWN_FUNCTION(mb_regex)
{
+ onig_end();
return SUCCESS;
}
/* }}} */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php