1--TEST--
2Test strrpos() function : usage variations - negative offset with empty needle
3--FILE--
4<?php
5$haystack = "Hello,\t\n\0\n  $&!#%()*<=>?@hello123456he \x234 \101 ";
6
7var_dump(strlen($haystack));
8
9var_dump( strrpos($haystack, "", -1) );
10var_dump( strrpos($haystack, "", -10) );
11var_dump( strrpos($haystack, "", -26) );
12var_dump( strrpos($haystack, "", -44) );
13?>
14
15DONE
16--EXPECT--
17int(44)
18int(43)
19int(34)
20int(18)
21int(0)
22
23DONE
24