[PHP-DEV][RFC] mb_str_split

2019-01-13 Thread Legale Legage
Hello, internals! NikiC wrote very detailed review about my mb_str_split. So i rewrote the function completely. While i was working on new implementation i've noticed something in the mbfl library functions: mbfl_substr and mbfl_strlen. if (encoding->flag & MBFL_ENCTYPE_SBCS) { len =

Re: [PHP-DEV][RFC] mb_str_split

2019-01-13 Thread Legale Legage
Help me to find memory leak. Travis CI says: 010+ [Sun Jan 13 18:49:49 2019] Script: '/home/travis/build/php/php-src/ext/mbstring/tests/mb_str_split_jp.php' 011+ /home/travis/build/php/php-src/ext/mbstring/mbstring.c(646) : Freeing 0x7f59d2c02540 (66 bytes),