moriyoshi Sat Sep 13 02:34:23 2008 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/mbstring php_mbregex.c
Log:
- MFH: 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.53.2.1.2.7&r2=1.53.2.1.2.8&diff_format=u
Index: php-src/ext/mbstring/php_mbregex.c
diff -u php-src/ext/mbstring/php_mbregex.c:1.53.2.1.2.7
php-src/ext/mbstring/php_mbregex.c:1.53.2.1.2.8
--- php-src/ext/mbstring/php_mbregex.c:1.53.2.1.2.7 Sun Feb 17 02:04:12 2008
+++ php-src/ext/mbstring/php_mbregex.c Sat Sep 13 02:34:23 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_mbregex.c,v 1.53.2.1.2.7 2008/02/17 02:04:12 hirokawa Exp $ */
+/* $Id: php_mbregex.c,v 1.53.2.1.2.8 2008/09/13 02:34:23 moriyoshi Exp $ */
#ifdef HAVE_CONFIG_H
@@ -66,6 +66,7 @@
/* {{{ PHP_MINIT_FUNCTION(mb_regex) */
PHP_MINIT_FUNCTION(mb_regex)
{
+ onig_init();
return SUCCESS;
}
/* }}} */
@@ -73,6 +74,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