From: [EMAIL PROTECTED]
Operating system:
PHP version: 5.3CVS-2008-09-10 (CVS)
PHP Bug Type: mbstring related
Bug description: Mem. leaks when calling mb_convert_encoding using Reflection
Description:
------------
See below.
Reproduce code:
---------------
<?php
$x = new reflectionfunction('mb_convert_encoding');
$x->invokeArgs(array(1, 2, 3));
Expected result:
----------------
Warning: mb_convert_encoding(): Unknown encoding "2" in %s on line %d
[Wed Sep 10 09:11:05 2008] Script: '%s'
/home/felipe/dev/php5/ext/mbstring/mbstring.c(3120) : Freeing 0x08BC5F94
(20 bytes), script=%s
[Wed Sep 10 09:11:05 2008] Script: '%s'
/home/felipe/dev/php5/main/spprintf.c(764) : Freeing 0x08BC5FD8 (79
bytes), script=%s
=== Total 2 memory leaks detected ===
--
Edit bug report at http://bugs.php.net/?id=46042&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=46042&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=46042&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=46042&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46042&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=46042&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46042&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46042&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46042&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46042&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46042&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=46042&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=46042&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46042&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46042&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46042&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46042&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46042&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46042&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46042&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46042&r=mysqlcfg