mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
12 lines
236 B
Plaintext
12 lines
236 B
Plaintext
|
--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)
|