Home
last modified time | relevance | path

Searched refs:htmlspecialchars_decode (Results 1 – 15 of 15) sorted by relevance

/PHP-7.3/ext/standard/tests/strings/
H A Dhtmlspecialchars_decode_error.phpt2 Test htmlspecialchars_decode() function : error conditions
5 /* Prototype : string htmlspecialchars_decode(string $string [, int $quote_style])
10 echo "*** Testing htmlspecialchars_decode() : error conditions ***\n";
13 echo "\n-- Testing htmlspecialchars_decode() function with Zero arguments --\n";
14 var_dump( htmlspecialchars_decode() );
16 //Test htmlspecialchars_decode with one more than the expected number of arguments
21 var_dump( htmlspecialchars_decode($string, $quote_style, $extra_arg) );
26 *** Testing htmlspecialchars_decode() : error conditions ***
28 -- Testing htmlspecialchars_decode() function with Zero arguments --
30 Warning: htmlspecialchars_decode() expects at least 1 parameter, 0 given in %s on line %d
[all …]
H A Dhtmlspecialchars_decode_basic.phpt2 Test htmlspecialchars_decode() function : basic functionality
10 echo "*** Testing htmlspecialchars_decode() : basic functionality ***\n";
18 // Calling htmlspecialchars_decode() with default arguments
19 var_dump( htmlspecialchars_decode($single_quote_string) );
20 var_dump( htmlspecialchars_decode($double_quote_string) );
23 var_dump( htmlspecialchars_decode($single_quote_string, ENT_COMPAT) );
24 var_dump( htmlspecialchars_decode($double_quote_string, ENT_COMPAT) );
25 var_dump( htmlspecialchars_decode($single_quote_string, ENT_NOQUOTES) );
27 var_dump( htmlspecialchars_decode($single_quote_string, ENT_QUOTES) );
28 var_dump( htmlspecialchars_decode($double_quote_string, ENT_QUOTES) );
[all …]
H A Dhtmlspecialchars_decode_variation6.phpt2 Test htmlspecialchars_decode() function : usage variations - binary safe
5 /* Prototype : string htmlspecialchars_decode(string $string [, int $quote_style])
11 * testing whether htmlspecialchars_decode() is binary safe or not
14 echo "*** Testing htmlspecialchars_decode() : usage variations ***\n";
24 //loop through the strings array to check if htmlspecialchars_decode() is binary safe
29 var_dump( htmlspecialchars_decode($value) );
31 var_dump( bin2hex(htmlspecialchars_decode($value)));
40 *** Testing htmlspecialchars_decode() : usage variations ***
H A Dhtmlspecialchars_decode_variation1.phpt2 Test htmlspecialchars_decode() function : usage variations - unexpected values for 'string' argument
5 /* Prototype : string htmlspecialchars_decode(string $string [, int $quote_style])
11 * testing htmlspecialchars_decode() with unexpected input values for $string argument
14 echo "*** Testing htmlspecialchars_decode() : usage variations ***\n";
85 var_dump( htmlspecialchars_decode($value) );
95 *** Testing htmlspecialchars_decode() : usage variations ***
116 Warning: htmlspecialchars_decode() expects parameter 1 to be string, array given in %s on line %d
120 Warning: htmlspecialchars_decode() expects parameter 1 to be string, array given in %s on line %d
124 Warning: htmlspecialchars_decode() expects parameter 1 to be string, array given in %s on line %d
128 Warning: htmlspecialchars_decode() expects parameter 1 to be string, array given in %s on line %d
[all …]
H A Dhtmlspecialchars_decode_variation2.phpt2 Test htmlspecialchars_decode() function : usage variations - unexpected values for 'quote_style' ar…
5 /* Prototype : string htmlspecialchars_decode(string $string [, int $quote_style])
11 * testing htmlspecialchars_decode() by giving unexpected input values for $quote_style argument
14 echo "*** Testing htmlspecialchars_decode() : usage variations ***\n";
86 var_dump( htmlspecialchars_decode($string, $value) );
96 *** Testing htmlspecialchars_decode() : usage variations ***
106 Warning: htmlspecialchars_decode() expects parameter 2 to be int, float given in %s on line %d
117 Warning: htmlspecialchars_decode() expects parameter 2 to be int, array given in %shtmlspecialchars…
122 Warning: htmlspecialchars_decode() expects parameter 2 to be int, array given in %shtmlspecialchars…
127 Warning: htmlspecialchars_decode() expects parameter 2 to be int, array given in %shtmlspecialchars…
[all …]
H A Dhtmlspecialchars_decode_variation5.phpt2 Test htmlspecialchars_decode() function : usage variations - double quoted strings for 'string' arg…
5 /* Prototype : string htmlspecialchars_decode(string $string [, int $quote_style])
11 * testing htmlspecialchars_decode() for various double quoted strings as argument for $string
13 echo "*** Testing htmlspecialchars_decode() : usage variations ***\n";
24 // loop through each element of the array to check htmlspecialchars_decode() function with all poss…
28 var_dump( htmlspecialchars_decode($value) );
29 var_dump( htmlspecialchars_decode($value, ENT_COMPAT) );
30 var_dump( htmlspecialchars_decode($value, ENT_NOQUOTES) );
31 var_dump( htmlspecialchars_decode($value, ENT_QUOTES) );
38 *** Testing htmlspecialchars_decode() : usage variations ***
H A Dhtmlspecialchars_decode_variation4.phpt2 Test htmlspecialchars_decode() function : usage variations - single quoted strings for 'string' arg…
5 /* Prototype : string htmlspecialchars_decode(string $string [, int $quote_style])
11 * Testing htmlspecialchars_decode() with various single quoted strings as argument for $string
14 echo "*** Testing htmlspecialchars_decode() : usage variations ***\n";
25 // loop through each element of the values array to check htmlspecialchars_decode() function with a…
29 var_dump( htmlspecialchars_decode($value) );
30 var_dump( htmlspecialchars_decode($value, ENT_COMPAT) );
31 var_dump( htmlspecialchars_decode($value, ENT_NOQUOTES) );
32 var_dump( htmlspecialchars_decode($value, ENT_QUOTES) );
39 *** Testing htmlspecialchars_decode() : usage variations ***
H A Dhtmlspecialchars_decode_variation3.phpt2 Test htmlspecialchars_decode() function : usage variations - heredoc strings for 'string' argument
5 /* Prototype : string htmlspecialchars_decode(string $string [, int $quote_style])
11 * testing htmlspecialchars_decode() with various heredoc strings as argument for $string
14 echo "*** Testing htmlspecialchars_decode() : usage variations ***\n";
64 // loop through $res_heredoc_strings array and check the working on htmlspecialchars_decode()
68 var_dump( htmlspecialchars_decode($res_heredoc_strings[$index]) );
75 *** Testing htmlspecialchars_decode() : usage variations ***
H A Dhtmlspecialchars_decode_variation7.phpt2 Test htmlspecialchars_decode() function : usage variations - numerical entities for basic characters
17 $dec = htmlspecialchars_decode($t, ENT_QUOTES | ENT_HTML401);
28 $dec = htmlspecialchars_decode($t, ENT_QUOTES | ENT_XHTML);
39 $dec = htmlspecialchars_decode($t, ENT_QUOTES | ENT_HTML5);
50 $dec = htmlspecialchars_decode($t, ENT_QUOTES | ENT_XML1);
61 $dec = htmlspecialchars_decode($t, ENT_NOQUOTES | ENT_HTML5);
72 $dec = htmlspecialchars_decode($t, ENT_COMPAT | ENT_HTML5);
H A Dhtml_entity_decode1.phpt35 ($b = htmlspecialchars_decode($ent, ENT_QUOTES))) {
36 echo "htmlspecialchars_decode <-> html_entity_decode inconsistency","\n",
/PHP-7.3/ext/mbstring/tests/
H A Dbug65045.phpt19 $expected === htmlspecialchars_decode(htmlspecialchars($str, ENT_SUBSTITUTE, 'UTF-8')),
20 $expected2 === htmlspecialchars_decode(htmlspecialchars($str2, ENT_SUBSTITUTE, 'UTF-8')),
/PHP-7.3/Zend/tests/
H A Dbug36513.phpt6 …echo "'".trim(str_replace("&nbsp;", " ", htmlspecialchars_decode(strip_tags(highlight_string($s,1)…
/PHP-7.3/ext/standard/
H A Dhtml.h51 PHP_FUNCTION(htmlspecialchars_decode);
H A Dhtml.c1490 PHP_FUNCTION(htmlspecialchars_decode) in PHP_FUNCTION() argument
H A Dbasic_functions.c2753 PHP_FE(htmlspecialchars_decode, arginfo_htmlspecialchars_decode)

Completed in 47 milliseconds