#48227 [Asn->Csd]: NumberFormatter::format leaks memory
ID: 48227
Updated by: felipe@php.net
Reported By: felipe@php.net
-Status: Assigned
+Status: Closed
Bug Type: I18N and L10N related
PHP Version: 5.3.0RC2
Assigned To: felipe
New Comment:
This bug has been fixed in CVS.
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/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2009-05-10 20:05:08] felipe@php.net
Description:
------------
See below.
Reproduce code:
---------------
<?php
$x = new NumberFormatter('en_US', NumberFormatter::DECIMAL);
var_dump($x->format(''));
Expected result:
----------------
string(1) "0"
Actual result:
--------------
string(1) "0"
[Sun May 10 17:04:45 2009] Script: '../test.php'
/home/felipe/dev/php5/Zend/zend_vm_execute.h(1721) : Freeing
0x09920A4C (1 bytes), script=../test.php
/home/felipe/dev/php5/Zend/zend_variables.c(120) : Actual location
(location was relayed)
=== Total 1 memory leaks detected ===
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48227&edit=1
Thread (3 messages)