1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00
Files
archived-php-src/ext/standard/tests/strings/bug33605.phpt
T
George Peter Banyard 5fbd49f9ab Convert Errors to ValueErrors
Closes GH-4930
2019-12-05 14:22:54 +01:00

14 lines
235 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--
The length must be greater than or equal to zero