blob: f0c49eb18fb5a571ba7331fb70ac4f44a63f80a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--TEST--
Bug #33605 (substr_compare crashes)
--FILE--
<?php
$res = substr_compare("aa", "a", -99999999, 0, 0);
var_dump($res);
?>
--EXPECTF--
Warning: substr_compare(): The length must be greater than zero in %s on line %d
bool(false)
|