php-src/ext/standard/tests/strings/bug33605.phpt
2006-04-25 12:49:04 +00:00

12 lines
236 B
PHP

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