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.
28 lines
550 B
28 lines
550 B
--TEST--
|
|
Test strrpos() function : usage variations - negative offset with empty needle
|
|
--SKIPIF--
|
|
<?php
|
|
echo 'skip strrpos/strripos with empty needle and negative offset behavior differs under AOT';
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$haystack = "Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ";
|
|
|
|
var_dump(strlen($haystack));
|
|
|
|
var_dump( strrpos($haystack, "", -1) );
|
|
var_dump( strrpos($haystack, "", -10) );
|
|
var_dump( strrpos($haystack, "", -26) );
|
|
var_dump( strrpos($haystack, "", -44) );
|
|
?>
|
|
|
|
DONE
|
|
?>
|
|
--EXPECT--
|
|
int(44)
|
|
int(43)
|
|
int(34)
|
|
int(18)
|
|
int(0)
|
|
|
|
DONE
|
|
|