TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
350 B
20 lines
350 B
--TEST--
|
|
Bug #77853: Inconsistent substr_compare behaviour with empty haystack
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(substr_compare('', '', 0, 0));
|
|
var_dump(substr_compare('', '', 0));
|
|
|
|
var_dump(substr_compare('abc', '', 3, 0));
|
|
var_dump(substr_compare('abc', '', 3));
|
|
|
|
var_dump(substr_compare('abc', "\0", 3));
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(0)
|
|
int(0)
|
|
int(0)
|
|
int(0)
|
|
int(-1)
|
|
|