php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62081 IntlDateFormatter constructor leaks memory when called twice
Submitted: 2012-05-20 19:35 UTC Modified: 2012-05-23 11:36 UTC
From: felipe@php.net Assigned: cataphract (profile)
Status: Closed Package: I18N and L10N related
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
 [2012-05-20 19:35 UTC] felipe@php.net
Description:
------------
See below:

Test script:
---------------
<?php

$x = new IntlDateFormatter(1,1,1,1,1);
$x->__construct(1,1,1,1,1);


Actual result:
--------------
[Sun May 20 16:32:34 2012]  Script:  '/home/felipe/dev/bug.php'
/home/felipe/dev/php5_3/ext/intl/dateformat/dateformat.c(149) :  Freeing 0x02D8A4C8 (2 bytes), script=/home/felipe/dev/bug.php
=== Total 1 memory leaks detected ===


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-23 11:30 UTC] cataphract@php.net
Automatic comment on behalf of cataphract
Revision: http://git.php.net/?p=php-src.git;a=commit;h=07c0d714a59cb4d38664008a165bacafd754fac2
Log: Fixed bug #62081
 [2012-05-23 11:36 UTC] cataphract@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cataphract
 [2012-05-23 11:36 UTC] cataphract@php.net
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.


 [2014-10-07 23:25 UTC] stas@php.net
Automatic comment on behalf of cataphract
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=07c0d714a59cb4d38664008a165bacafd754fac2
Log: Fixed bug #62081
 [2014-10-07 23:36 UTC] stas@php.net
Automatic comment on behalf of cataphract
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=07c0d714a59cb4d38664008a165bacafd754fac2
Log: Fixed bug #62081
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 15:01:30 2024 UTC