1
0
mirror of https://github.com/php/php-src.git synced 2026-04-30 03:33:17 +02:00
Files
archived-php-src/ext/standard/tests/strings/strripos_variation6.phpt
T
2019-08-26 17:11:37 +02:00

24 lines
436 B
PHP

--TEST--
Test strrpos() function : usage variations - negative offset with empty needle
--FILE--
<?php
$haystack = "Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ";
var_dump(strlen($haystack));
var_dump( strripos($haystack, "", -1) );
var_dump( strripos($haystack, "", -10) );
var_dump( strripos($haystack, "", -26) );
var_dump( strripos($haystack, "", -44) );
?>
DONE
--EXPECT--
int(44)
int(43)
int(34)
int(18)
int(0)
DONE