Re: [PHP-DEV] [PATCH] Bug #46806 - mb_strimwidth

2009-01-04 Thread Moriyoshi Koizumi
Hi, This behavior seems strange, but the rationale of this function is that the (east asian) width of the resulting string does not exceed the specified value so that it would fit to a fixed sized box when rendered in the browser, assuming the string would be displayed with a monospace font.

[PHP-DEV] [PATCH] Bug #46806 - mb_strimwidth

2008-12-30 Thread Henrique M. Decaria
Hello guys, Looking in the subject mentioned bug report, it seems that the attached patch might do the trick and make the mb_strimwidth() function work as explained in the php manual (http://br2.php.net/mb_strimwidth). According to it, the function should trim up to the defined width and append th