1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00
Files
archived-php-src/ext/standard/tests/strings/bug33605.phpt
2020-03-18 19:56:10 +01:00

14 lines
261 B
PHP

--TEST--
Bug #33605 (substr_compare crashes)
--FILE--
<?php
try {
substr_compare("aa", "a", -99999999, -1, 0);
} catch (\ValueError $e) {
echo $e->getMessage();
}
?>
--EXPECT--
substr_compare(): Argument #4 ($length) must be greater than or equal to 0