php-src/ext/standard/tests/strings/bug33605.phpt

12 lines
236 B
Plaintext
Raw Normal View History

--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)