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: [email protected] 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] [email protected]
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] [email protected]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cataphract
 [2012-05-23 11:36 UTC] [email protected]
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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 07:00:02 2025 UTC