Edit report at https://bugs.php.net/bug.php?id=60785&edit=1
ID: 60785 Updated by: cataphr...@php.net Reported by: tim at digicol dot de Summary: Memory leak in IntlDateFormatter constructor -Status: Assigned +Status: Closed Type: Bug Package: I18N and L10N related Operating System: Linux 2.6.32 x86_64 CentOS 6.2 PHP Version: 5.3.9 Assigned To: cataphract Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2012-05-24 09:12:31] cataphr...@php.net Automatic comment on behalf of cataphract Revision: http://git.php.net/?p=php-src.git;a=commit;h=2da2de46a8dc9d44b624c40adb0d6bf698567167 Log: Fixed bug #60785 ------------------------------------------------------------------------ [2012-05-24 09:10:50] cataphr...@php.net Automatic comment on behalf of cataphract Revision: http://git.php.net/?p=php-src.git;a=commit;h=2da2de46a8dc9d44b624c40adb0d6bf698567167 Log: Fixed bug #60785 ------------------------------------------------------------------------ [2012-01-31 10:15:35] tim at digicol dot de unset() doesnât help, it still leaks memory. (I had already tried this. In my understanding, reusing the $fmt variable should effectively unset the old instance anyway.) ------------------------------------------------------------------------ [2012-01-27 22:15:09] carloschilazo at gmail dot com If you unset the variable right after you create it, does the memory usage still increases? <?php printf("Run 'top -p %s' in another shell to watch memory usage grow...\n", posix_getpid()); for ($i = 1; $i < 500000; $i++) { $fmt = new IntlDateFormatter ( 'en_US', IntlDateFormatter::SHORT, IntlDateFormatter::NONE ); unset($fmt); } ?> ? ------------------------------------------------------------------------ [2012-01-17 22:34:18] tim at digicol dot de The phpinfo "intl" section says: Internationalization support => enabled version => 1.1.0 ICU version => 4.2.1 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=60785 -- Edit this bug report at https://bugs.php.net/bug.php?id=60785&edit=1