cvs: php-src(PHP_5_3) /ext/mbstring php_mbregex.c
| From: | Moriyoshi Koizumi | Date: | Sat, 13 Sep 2008 02:33:15 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/mbstring php_mbregex.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-53117@lists.php.net to get a copy of this message | ||
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;
}
/* }}} */