IntlDateFormatter constructor leaks memory when called twice

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:36 UTC] cataphract@php.net

-Status: Open +Status: Closed -Assigned To: +Assigned To: cataphract