php-src/ext/mbstring/tests/gh9248.phpt
Christoph M. Becker d013d94985
Fix GH-9248: Segmentation fault in mb_strimwidth()
We need to initialize the optional argument `trimmarker` with its
default value.

Closes GH-9273.
2022-08-08 18:35:37 +02:00

11 lines
199 B
PHP

--TEST--
Bug GH-9248 (Segmentation fault in mb_strimwidth())
--EXTENSIONS--
mbstring
--FILE--
<?php
var_dump(mb_strimwidth('The quick brown fox', 0, 8));
?>
--EXPECT--
string(8) "The quic"