xref: /PHP-8.4/ext/iconv/tests/bug72320.phpt (revision e9f783fc)
1--TEST--
2Bug #72320 (iconv_substr returns false for empty strings)
3--EXTENSIONS--
4iconv
5--FILE--
6<?php
7var_dump(iconv_substr('', 0, 10, 'UTF-8'));
8var_dump(iconv_substr('foo', 3, 10, 'UTF-8'));
9?>
10--EXPECT--
11string(0) ""
12string(0) ""
13