xref: /PHP-7.1/ext/iconv/tests/bug72320.phpt (revision a837b2f6)
1--TEST--
2Bug #72320 (iconv_substr returns false for empty strings)
3--SKIPIF--
4<?php
5if (!extension_loaded('iconv')) die('skip ext/iconv required');
6?>
7--FILE--
8<?php
9var_dump(iconv_substr('', 0, 10, 'UTF-8'));
10var_dump(iconv_substr('foo', 3, 10, 'UTF-8'));
11?>
12--EXPECT--
13string(0) ""
14string(0) ""
15