1--TEST--
2Bug #33605 (substr_compare crashes)
3--FILE--
4<?php
5try {
6 substr_compare("aa", "a", -99999999, -1, 0);
7} catch (\ValueError $e) {
8 echo $e->getMessage();
9}
10
11?>
12--EXPECT--
13substr_compare(): Argument #4 ($length) must be greater than or equal to 0
14