summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/bug33605.phpt
blob: 7ba38f94f50d27e34b11772c9e9e28ec6bcc67f5 (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, -1, 0);
var_dump($res);

?>
--EXPECTF--
Warning: substr_compare(): The length must be greater than or equal to zero in %s on line %d
bool(false)