1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 07:58:20 +02:00
Files
archived-php-src/ext/standard/tests/strings/bug33605.phpt
T
2019-08-31 23:34:24 +02:00

14 lines
231 B
PHP

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