moriyoshi Sat Sep 13 02:33:15 2008 UTC
Modified files: (Branch: PHP_5_3)
/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.4.2.11&r2=1.53.2.1.2.4.2.12&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.4.2.11
php-src/ext/mbstring/php_mbregex.c:1.53.2.1.2.4.2.12
--- php-src/ext/mbstring/php_mbregex.c:1.53.2.1.2.4.2.11 Fri Jul 25
14:04:54 2008
+++ php-src/ext/mbstring/php_mbregex.c Sat Sep 13 02:33:15 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_mbregex.c,v 1.53.2.1.2.4.2.11 2008/07/25 14:04:54 moriyoshi Exp $
*/
+/* $Id: php_mbregex.c,v 1.53.2.1.2.4.2.12 2008/09/13 02:33:15 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