Home
last modified time | relevance | path

Searched refs:iconv_strpos (Results 1 – 17 of 17) sorted by relevance

/PHP-7.3/ext/iconv/tests/
H A Diconv_strpos_error1.phpt2 Test iconv_strpos() function : error conditions - Pass incorrect number of args
6 function_exists('iconv_strpos') or die("skip iconv_strpos() is not available in this build");
16 * Test how iconv_strpos behaves when passed an incorrect number of arguments
19 echo "*** Testing iconv_strpos() : error conditions ***\n";
22 //Test iconv_strpos with one more than the expected number of arguments
29 var_dump( iconv_strpos($haystack, $needle, $offset, $encoding, $extra_arg) );
31 // Testing iconv_strpos with one less than the expected number of arguments
34 var_dump( iconv_strpos($haystack) );
39 *** Testing iconv_strpos() : error conditions ***
41 -- Testing iconv_strpos() function with more than expected no. of arguments --
[all …]
H A Diconv_strpos_basic.phpt2 Test iconv_strpos() function : basic functionality
6 function_exists('iconv_strpos') or die("skip iconv_strpos() is not available in this build");
12 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]])
18 * Test basic functionality of iconv_strpos with ASCII and multibyte characters
21 echo "*** Testing iconv_strpos() : basic functionality***\n";
30 var_dump(iconv_strpos($string_ascii, 'd', 2, 'ISO-8859-1'));
33 var_dump(iconv_strpos($string_ascii, '123'));
37 var_dump(iconv_strpos($string_mb, $needle1));
41 var_dump(iconv_strpos($string_mb, $needle2));
46 *** Testing iconv_strpos() : basic functionality***
H A Diconv_strpos_error2.phpt2 Test iconv_strpos() function : error conditions - Pass unknown encoding
6 function_exists('iconv_strpos') or die("skip iconv_strpos() is not available in this build");
10 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]])
16 * Pass an unknown encoding to iconv_strpos() to test behaviour
19 echo "*** Testing iconv_strpos() : error conditions ***\n";
25 var_dump( iconv_strpos($haystack, $needle, $offset, $encoding) );
30 *** Testing iconv_strpos() : error conditions ***
32 Notice: iconv_strpos(): Wrong charset, conversion from `unknown-encoding' to `UCS-4LE' is not allow…
H A Diconv_strpos_variation3.phpt2 Test iconv_strpos() function : usage variations - pass different data types as $offset arg
6 function_exists('iconv_strpos') or die("skip iconv_strpos() is not available in this build");
17 * Pass iconv_strpos different data types as $offset arg to test behaviour
20 echo "*** Testing iconv_strpos() : usage variations ***\n";
97 // loop through each element of $inputs to check the behavior of iconv_strpos()
102 var_dump( iconv_strpos($haystack, $needle, $input, $encoding));
110 *** Testing iconv_strpos() : usage variations ***
126 Warning: iconv_strpos(): Offset not contained in string. in %s on line %d
137 Warning: iconv_strpos(): Offset not contained in string. in %s on line %d
142 Warning: iconv_strpos() expects parameter 3 to be int, float given in %s on line %d
[all …]
H A Diconv_strpos_variation4.phpt2 Test iconv_strpos() function : usage variations - pass different data types as $charset arg
6 function_exists('iconv_strpos') or die("skip iconv_strpos() is not available in this build");
10 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]])
17 * Pass iconv_strpos different data types as $encoding arg to test behaviour
21 echo "*** Testing iconv_strpos() : usage variations ***\n";
96 // loop through each element of $inputs to check the behavior of iconv_strpos()
100 var_dump( iconv_strpos($haystack, $needle, $offset, $input));
109 *** Testing iconv_strpos() : usage variations ***
113 Notice: iconv_strpos(): Wrong charset, conversion from `0' to `UCS-4LE' is not allowed in %s on lin…
118 Notice: iconv_strpos(): Wrong charset, conversion from `1' to `UCS-4LE' is not allowed in %s on lin…
[all …]
H A Diconv_strpos_variation3_64bit.phpt2 Test iconv_strpos() function : usage variations - pass different data types as $offset arg
6 function_exists('iconv_strpos') or die("skip iconv_strpos() is not available in this build");
17 * Pass iconv_strpos different data types as $offset arg to test behaviour
20 echo "*** Testing iconv_strpos() : usage variations ***\n";
97 // loop through each element of $inputs to check the behavior of iconv_strpos()
102 var_dump( iconv_strpos($haystack, $needle, $input, $encoding));
110 *** Testing iconv_strpos() : usage variations ***
126 Warning: iconv_strpos(): Offset not contained in string. in %s on line %d
137 Warning: iconv_strpos(): Offset not contained in string. in %s on line %d
169 Warning: iconv_strpos() expects parameter 3 to be int, string given in %s on line %d
[all …]
H A Dbug37176.phpt2 Bug #37176 (iconv_strpos() fails to find a string)
7 $test = @iconv_strpos("abbttt","ttt",0,"UTF-8");
15 var_dump(iconv_strpos('11--','1-',0,'UTF-8'));
16 var_dump(iconv_strpos('-11--','1-',0,'UTF-8'));
H A Diconv_strpos_variation5.phpt2 Test iconv_strpos() function : usage variations - Pass different integers as $offset argument
6 function_exists('iconv_strpos') or die("skip iconv_strpos() is not available in this build");
12 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]])
18 * Test how iconv_strpos() behaves when passed different integers as $offset argument
25 echo "*** Testing iconv_strpos() : usage variations ***\n";
40 var_dump(iconv_strpos($string_ascii, $needle_ascii, $i));
42 var_dump(iconv_strpos($string_mb, $needle_mb, $i, 'UTF-8'));
48 *** Testing iconv_strpos() : usage variations ***
53 Warning: iconv_strpos(): Offset not contained in string. in %s on line %d
57 Warning: iconv_strpos(): Offset not contained in string. in %s on line %d
H A Diconv_strpos_variation1.phpt2 Test iconv_strpos() function : usage variations - pass different data types to $haystack arg
6 function_exists('iconv_strpos') or die("skip iconv_strpos() is not available in this build");
10 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]])
16 * Pass iconv_strpos different data types as $haystack arg to test behaviour
19 echo "*** Testing iconv_strpos() : usage variations ***\n";
94 // loop through each element of $inputs to check the behavior of iconv_strpos()
98 var_dump( iconv_strpos($input, $needle, $offset, $encoding));
107 *** Testing iconv_strpos() : usage variations ***
180 Warning: iconv_strpos() expects parameter 1 to be string, resource given in %s on line %d
H A Diconv_strpos_variation2.phpt2 Test iconv_strpos() function : usage variations - pass different data types as $needle arg
6 function_exists('iconv_strpos') or die("skip iconv_strpos() is not available in this build");
10 /* Prototype : int iconv_strpos(string haystack, string needle [, int offset [, string charset]])
16 * Pass iconv_strpos different data types as $needle arg to test behaviour
19 echo "*** Testing iconv_strpos() : usage variations ***\n";
94 // loop through each element of $inputs to check the behavior of iconv_strpos()
98 var_dump( iconv_strpos($haystack, $input, $offset, $encoding));
107 *** Testing iconv_strpos() : usage variations ***
180 Warning: iconv_strpos() expects parameter 2 to be string, resource given in %s on line %d
H A Diconv_strpos.phpt2 iconv_strpos()
21 var_dump(iconv_strpos($haystk, $needle, $offset, $to_charset));
23 var_dump(iconv_strpos($haystk, $needle, $offset));
36 var_dump(iconv_strpos("string", ""));
37 var_dump(iconv_strpos("", "string"));
H A Diconv_strpos-charset-length-cve-2007-4840.phpt2 iconv_strpos() charset parameter length checks (CVE-2007-4840)
8 var_dump(iconv_strpos("a", "b", 0, $a));
11 Warning: iconv_strpos(): Charset parameter exceeds the maximum allowed length of %d characters in %…
H A Dbug37773.phpt7 $test = @iconv_strpos("abbttt","ttt",0,"UTF-8");
H A Dbug79200.phpt11 var_dump(iconv_strpos('test test', 'test test', 0, 'WINDOWS-1258'));
/PHP-7.3/ext/iconv/
H A Dphp_iconv.h64 PHP_FUNCTION(iconv_strpos);
H A Diconv.c132 PHP_FE(iconv_strpos, arginfo_iconv_strpos)
2150 PHP_FUNCTION(iconv_strpos) in PHP_FUNCTION() argument
/PHP-7.3/
H A D.gitattributes17 /ext/iconv/tests/iconv_strpos.phpt -crlf

Completed in 45 milliseconds