ID: 46042
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: mbstring related
PHP Version: 5.3CVS-2008-09-10 (CVS)
New Comment:
See also:
$x = new reflectionfunction('mb_detect_encoding');
$x->invokeArgs(array(1,2,3));
Warning: mb_detect_encoding(): Illegal argument in %s on line 4
[Wed Sep 10 09:33:38 2008] Script: '%s'
/home/felipe/dev/php5/ext/mbstring/mbstring.c(3241) : Freeing
0x08BC5F14 (20 bytes), script=%s
[Wed Sep 10 09:33:38 2008] Script: '%s'
/home/felipe/dev/php5/main/spprintf.c(764) : Freeing 0x08BC5F58 (79
bytes), script=%s
-------
$x = new reflectionfunction('mb_substitute_character');
$x->invoke(array());
Warning: mb_substitute_character(): Unknown character. in %s on line 8
[Wed Sep 10 09:32:46 2008] Script: '%s'
/home/felipe/dev/php5/ext/mbstring/mbstring.c(2035) : Freeing
0x08BC5BCC (20 bytes), script=%s
=== Total 1 memory leaks detected ===
Previous Comments:
------------------------------------------------------------------------
[2008-09-10 12:14:14] [EMAIL PROTECTED]
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 this bug report at http://bugs.php.net/?id=46042&edit=1