### Description The following code: ```php <?php echo mb_strimwidth('The quick brown fox', 0, 8); ``` Process crashed with SIGSEGV. But I expected this output instead: ``` The quic ``` ### PHP Version git.master | released 2022-08-04 (3v4l.org) ### Operating System _No response_
Activity
cmb69 commentedon Aug 5, 2022
Indeed, we need to initialize
trimmarker:alexdowad commentedon Aug 5, 2022
Thanks for the great catch! Much appreciated!
alexdowad commentedon Aug 5, 2022
@cmb69, do you want to commit this fix, or should I include it in my next PR?
Fix phpGH-9248: Segmentation fault in mb_strimwidth()
cmb69 commentedon Aug 8, 2022
I just submitted PR #9273. :)
alexdowad commentedon Aug 8, 2022
Thanks very much!