From: [email protected]
Operating system:
PHP version: 5.3.0RC2
PHP Bug Type: I18N and L10N related
Bug description: NumberFormatter::format leaks memory
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 bug report at http://bugs.php.net/?id=48227&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=48227&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=48227&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=48227&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=48227&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=48227&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=48227&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=48227&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=48227&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=48227&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=48227&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=48227&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=48227&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=48227&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=48227&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48227&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48227&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=48227&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=48227&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=48227&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=48227&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=48227&r=mysqlcfg