mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
5fbd49f9ab
Closes GH-4930
14 lines
235 B
PHP
14 lines
235 B
PHP
--TEST--
|
|
Bug #33605 (substr_compare crashes)
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
substr_compare("aa", "a", -99999999, -1, 0);
|
|
} catch (\ValueError $e) {
|
|
echo $e->getMessage();
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
The length must be greater than or equal to zero
|