|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-09-10 12:14 UTC] felipe@php.net
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 ===
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 19:00:01 2025 UTC |
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 ===