mirror of
https://github.com/php/php-src.git
synced 2026-04-23 07:58:20 +02:00
14 lines
231 B
PHP
14 lines
231 B
PHP
--TEST--
|
|
Bug #33605 (substr_compare crashes)
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
substr_compare("aa", "a", -99999999, -1, 0);
|
|
} catch (\Error $e) {
|
|
echo $e->getMessage();
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
The length must be greater than or equal to zero
|