Home
last modified time | relevance | path

Searched refs:iconv_strlen (Results 1 – 12 of 12) sorted by relevance

/PHP-5.3/ext/iconv/tests/
H A Diconv_strlen_error1.phpt2 Test iconv_strlen() function : error conditions - pass incorrect number of args
6 function_exists('iconv_strlen') or die("skip iconv_strlen() is not available in this build");
10 /* Prototype : int iconv_strlen(string str [, string charset])
16 * Pass iconv_strlen an incorrect number of arguments to test behaviour
19 echo "*** Testing iconv_strlen() : error conditions ***\n";
22 echo "\n-- Testing iconv_strlen() function with Zero arguments --\n";
23 var_dump( iconv_strlen() );
25 //Test iconv_strlen with one more than the expected number of arguments
30 var_dump( iconv_strlen($str, $encoding, $extra_arg) );
34 *** Testing iconv_strlen() : error conditions ***
[all …]
H A Diconv_strlen_basic.phpt2 Test iconv_strlen() function : basic functionality
6 function_exists('iconv_strlen') or die("skip iconv_strlen() is not available in this build");
10 /* Prototype : int iconv_strlen(string str [, string charset])
16 * Test basic functionality of iconv_strlen()
19 echo "*** Testing iconv_strlen() : basic functionality***\n";
26 var_dump(iconv_strlen($string_ascii));
29 var_dump(iconv_strlen($string_mb, 'UTF-8'));
33 *** Testing iconv_strlen() : basic functionality***
H A Diconv_strlen_error2.phpt2 Test iconv_strlen() function : error conditions - pass an unknown encoding
6 function_exists('iconv_strlen') or die("skip iconv_strlen() is not available in this build");
10 /* Prototype : int iconv_strlen(string str [, string charset])
16 * Test iconv_strlen when passed an unknown encoding
19 echo "*** Testing iconv_strlen() : error ***\n";
25 var_dump(iconv_strlen($string, $encoding));
30 *** Testing iconv_strlen() : error ***
32 Notice: iconv_strlen(): Wrong charset, conversion from `unknown-encoding' to `UCS-4LE' is not allow…
H A Diconv_strlen_variation2.phpt2 Test iconv_strlen() function : usage variations - Pass different data types as $encoding arg
6 function_exists('iconv_strlen') or die("skip iconv_strlen() is not available in this build");
10 /* Prototype : int iconv_strlen(string str [, string charset])
16 * Test iconv_strlen() by passing different data types as $encoding argument.
20 echo "*** Testing iconv_strlen() : usage variations ***\n";
93 // loop through each element of $inputs to check the behavior of iconv_strlen()
97 var_dump( iconv_strlen($str, $input));
107 *** Testing iconv_strlen() : usage variations ***
111 Notice: iconv_strlen(): Wrong charset, conversion from `0' to `UCS-4LE' is not allowed in %s on lin…
116 Notice: iconv_strlen(): Wrong charset, conversion from `1' to `UCS-4LE' is not allowed in %s on lin…
[all …]
H A Diconv_strlen_variation1.phpt2 Test iconv_strlen() function : usage variations - Pass different data types as $str arg
6 function_exists('iconv_strlen') or die("skip iconv_strlen() is not available in this build");
10 /* Prototype : int iconv_strlen(string str [, string charset])
16 * Test iconv_strlen by passing different data types as $str argument
19 echo "*** Testing iconv_strlen() : usage variations ***\n";
103 // loop through each element of $inputs to check the behavior of iconv_strlen()
107 var_dump( iconv_strlen($value, $encoding));
115 *** Testing iconv_strlen() : usage variations ***
191 Warning: iconv_strlen() expects parameter 1 to be string, resource given in %s on line %d
H A Diconv_strlen-charset-length-cve-2007-4840.phpt2 iconv_strlen() charset parameter length checks (CVE-2007-4840)
8 var_dump(iconv_strlen(1, $a));
12 Warning: iconv_strlen(): Charset parameter exceeds the maximum allowed length of %d characters in %…
H A Diconv_strlen.phpt2 iconv_strlen()
9 var_dump(iconv_strlen($str, $charset));
H A Diconv_strrpos.phpt20 var_dump(iconv_strlen($haystk, $to_charset));
23 var_dump(iconv_strlen($haystk));
H A Diconv_mime_decode.phpt20 printf("(%d) \"%s\"\n", iconv_strlen($result, "UTF-8"), $result);
/PHP-5.3/ext/iconv/
H A Dphp_iconv.h61 PHP_FUNCTION(iconv_strlen);
H A Diconv.c138 PHP_FE(iconv_strlen, arginfo_iconv_strlen)
1890 PHP_FUNCTION(iconv_strlen) in PHP_FUNCTION() argument
/PHP-5.3/
H A DNEWS6460 - Fixed bug #33268 (iconv_strlen() works only with a parameter of < 3 in

Completed in 60 milliseconds