Searched refs:iconv_strlen (Results 1 – 11 of 11) sorted by relevance
/PHP-7.2/ext/iconv/tests/ |
H A D | iconv_strlen_error1.phpt | 2 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 D | iconv_strlen_error2.phpt | 2 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 D | iconv_strlen_basic.phpt | 2 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 D | iconv_strlen_variation2.phpt | 2 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)); 106 *** Testing iconv_strlen() : usage variations *** 110 Notice: iconv_strlen(): Wrong charset, conversion from `0' to `UCS-4LE' is not allowed in %s on lin… 115 Notice: iconv_strlen(): Wrong charset, conversion from `1' to `UCS-4LE' is not allowed in %s on lin… [all …]
|
H A D | iconv_strlen_variation1.phpt | 2 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 D | iconv_strlen-charset-length-cve-2007-4840.phpt | 2 iconv_strlen() charset parameter length checks (CVE-2007-4840) 8 var_dump(iconv_strlen(1, $a)); 11 Warning: iconv_strlen(): Charset parameter exceeds the maximum allowed length of %d characters in %…
|
H A D | iconv_strlen.phpt | 2 iconv_strlen() 9 var_dump(iconv_strlen($str, $charset));
|
H A D | iconv_strrpos.phpt | 20 var_dump(iconv_strlen($haystk, $to_charset)); 23 var_dump(iconv_strlen($haystk));
|
H A D | iconv_mime_decode.phpt | 20 printf("(%d) \"%s\"\n", iconv_strlen($result, "UTF-8"), $result);
|
/PHP-7.2/ext/iconv/ |
H A D | php_iconv.h | 64 PHP_FUNCTION(iconv_strlen);
|
H A D | iconv.c | 132 PHP_FE(iconv_strlen, arginfo_iconv_strlen) 2071 PHP_FUNCTION(iconv_strlen) in PHP_FUNCTION() argument
|
Completed in 23 milliseconds