1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/ext/mbstring/tests/mb_strimwidth_deprecated.phpt
2023-07-17 05:01:13 +01:00

12 lines
308 B
PHP

--TEST--
mb_strimwidth() is deprecated with negative width
--EXTENSIONS--
mbstring
--FILE--
<?php
var_dump(mb_strimwidth("some string", 1, -2, '...', 'ASCII'));
?>
--EXPECTF--
Deprecated: mb_strimwidth(): passing a negative integer to argument #3 ($width) is deprecated in %s on line %d
string(8) "ome s..."