/PHP-5.3/ext/standard/tests/strings/ |
H A D | strip_tags_error.phpt | 2 Test strip_tags() function : error conditions 7 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 13 echo "*** Testing strip_tags() : error conditions ***\n"; 16 echo "\n-- Testing strip_tags() function with Zero arguments --\n"; 17 var_dump( strip_tags() ); 19 //Test strip_tags with one more than the expected number of arguments 24 var_dump( strip_tags($str, $allowable_tags, $extra_arg) ); 29 *** Testing strip_tags() : error conditions *** 31 -- Testing strip_tags() function with Zero arguments -- 33 Warning: strip_tags() expects at least 1 parameter, 0 given in %s on line %d [all …]
|
H A D | strip_tags.phpt | 2 strip_tags() function 5 echo strip_tags('NEAT <? cool < blah ?> STUFF'); 7 echo strip_tags('NEAT <? cool > blah ?> STUFF'); 9 echo strip_tags('NEAT <!-- cool < blah --> STUFF'); 11 echo strip_tags('NEAT <!-- cool > blah --> STUFF'); 13 echo strip_tags('NEAT <? echo \"\\\"\"?> STUFF'); 15 echo strip_tags('NEAT <? echo \'\\\'\'?> STUFF'); 17 echo strip_tags('TESTS ?!!?!?!!!?!!');
|
H A D | bug46578.phpt | 2 Bug #46578 (strip_tags() does not honor end-of-comment when it encounters a single quote) 6 var_dump(strip_tags('<!-- testing I\'ve been to mars -->foobar')); 8 var_dump(strip_tags('<a alt="foobar">foo<!-- foo! --></a>bar')); 10 var_dump(strip_tags('<a alt="foobar"/>foo<?= foo! /* <!-- "cool" --> */ ?>bar')); 12 var_dump(strip_tags('< ax')); 14 var_dump(strip_tags('<! a>')); 16 var_dump(strip_tags('<? ax'));
|
H A D | strip_tags_variation11.phpt | 2 Test strip_tags() function : obscure values within attributes 8 echo "*** Testing strip_tags() : obscure functionality ***\n"; 19 // Calling strip_tags() with default arguments 20 // loop through the $string_array to test strip_tags on various inputs 25 var_dump( strip_tags($string) ); 32 *** Testing strip_tags() : obscure functionality ***
|
H A D | strip_tags_variation1.phpt | 2 Test strip_tags() function : usage variations - unexpected values for 'str' argument 7 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 13 * testing functionality of strip_tags() by giving unexpected input values for $str argument 16 echo "*** Testing strip_tags() : usage variations ***\n"; 87 var_dump( strip_tags($value) ); 94 *** Testing strip_tags() : usage variations *** 115 Warning: strip_tags() expects parameter 1 to be string, array given in %s on line %d 119 Warning: strip_tags() expects parameter 1 to be string, array given in %s on line %d 123 Warning: strip_tags() expects parameter 1 to be string, array given in %s on line %d 127 Warning: strip_tags() expects parameter 1 to be string, array given in %s on line %d [all …]
|
H A D | strip_tags_variation3.phpt | 2 Test strip_tags() function : usage variations - unexpected values for both 'str' and 'allowable_tag… 7 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 16 echo "*** Testing strip_tags() : usage variations ***\n"; 87 var_dump( strip_tags($value, $value) ); 94 *** Testing strip_tags() : usage variations *** 115 Warning: strip_tags() expects parameter 1 to be string, array given in %s on line %d 119 Warning: strip_tags() expects parameter 1 to be string, array given in %s on line %d 123 Warning: strip_tags() expects parameter 1 to be string, array given in %s on line %d 127 Warning: strip_tags() expects parameter 1 to be string, array given in %s on line %d 131 Warning: strip_tags() expects parameter 1 to be string, array given in %s on line %d [all …]
|
H A D | strip_tags_variation6.phpt | 2 Test strip_tags() function : usage variations - binary safe checking 7 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 13 * testing whether strip_tags() is binary safe or not 16 echo "*** Testing strip_tags() : usage variations ***\n"; 26 //loop through the strings array to check if strip_tags() is binary safe 31 var_dump( strip_tags($value) ); 38 *** Testing strip_tags() : usage variations ***
|
H A D | strip_tags_variation8.phpt | 2 Test strip_tags() function : usage variations - valid value for 'str' and invalid values for 'allow… 7 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 13 …* testing functionality of strip_tags() by giving valid value for $str and invalid values for $all… 16 echo "*** Testing strip_tags() : usage variations ***\n"; 31 //loop through the various elements of strings array to test strip_tags() functionality 36 var_dump( strip_tags($strings, $string_value) ); 42 *** Testing strip_tags() : usage variations ***
|
H A D | strip_tags_basic1.phpt | 2 Test strip_tags() function : basic functionality - with default arguments 7 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 12 echo "*** Testing strip_tags() : basic functionality ***\n"; 33 // Calling strip_tags() with default arguments 34 // loop through the $string_array to test strip_tags on various inputs 39 var_dump( strip_tags($string) ); 46 *** Testing strip_tags() : basic functionality ***
|
H A D | strip_tags_basic2.phpt | 2 Test strip_tags() function : basic functionality - with all arguments 7 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 12 echo "*** Testing strip_tags() : basic functionality ***\n"; 14 // Calling strip_tags() with all possible arguments 29 // loop through the $string with various $allowed_tags_array to test strip_tags 35 var_dump( strip_tags($string, $tags) ); 42 *** Testing strip_tags() : basic functionality ***
|
H A D | bug53319.phpt | 7 var_dump(strip_tags($str, '<input>')); 8 var_dump(strip_tags($str, '<br><input>') === $str); 9 var_dump(strip_tags($str)); 10 var_dump(strip_tags('<a/b>', '<a>'));
|
H A D | strip_tags_variation9.phpt | 2 Test strip_tags() function : usage variations - double quoted strings 7 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 13 * testing functionality of strip_tags() by giving double quoted strings as values for $str argument 16 echo "*** Testing strip_tags() : usage variations ***\n"; 29 //loop through the various elements of strings array to test strip_tags() functionality 34 var_dump( strip_tags($string_value, $quotes) ); 40 *** Testing strip_tags() : usage variations ***
|
H A D | bug50847.phpt | 2 Bug #50847 (strip_tags() removes all tags greater then 1023 bytes long) 6 var_dump(strip_tags($var, "<param>"), strip_tags($var));
|
H A D | bug23650.phpt | 2 Bug #23650 (strip_tags() removes hyphens) 15 echo strip_tags($str); 16 echo strip_tags($str, '<abc>');
|
H A D | strip_tags_variation10.phpt | 2 Test strip_tags() function : usage variations - single quoted strings 7 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 13 * testing functionality of strip_tags() by giving single quoted strings as values for $str argument 16 echo "*** Testing strip_tags() : usage variations ***\n"; 30 //loop through the various elements of strings array to test strip_tags() functionality 35 var_dump( strip_tags($string_value, $quotes) ); 42 *** Testing strip_tags() : usage variations ***
|
H A D | bug21744.phpt | 2 Bug #21744 (strip_tags misses exclamation marks in alt text) 10 print strip_tags($test, ''); 11 print strip_tags($test, '<a>');
|
H A D | strip_tags_variation4.phpt | 2 Test strip_tags() function : usage variations - invalid values for 'str' and valid 'allowable_tags' 7 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 13 …* testing functionality of strip_tags() by giving invalid values for $str and valid values for $al… 16 echo "*** Testing strip_tags() : usage variations ***\n"; 37 //loop through the various elements of strings array to test strip_tags() functionality 42 var_dump( strip_tags($string_value, $quotes) ); 49 *** Testing strip_tags() : usage variations ***
|
H A D | strip_tags_variation7.phpt | 2 Test strip_tags() function : usage variations - invalid values for 'str' and 'allowable_tags' 7 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 13 …* testing functionality of strip_tags() by giving invalid values for $str and $allowable_tags argu… 16 echo "*** Testing strip_tags() : usage variations ***\n"; 35 //loop through the various elements of strings array to test strip_tags() functionality 40 var_dump( strip_tags($string_value, $quotes) ); 47 *** Testing strip_tags() : usage variations ***
|
H A D | strip_tags_variation5.phpt | 2 Test strip_tags() function : usage variations - heredoc strings 7 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 14 * testing functionality of strip_tags() by giving heredoc strings as values for $str argument 17 echo "*** Testing strip_tags() : usage variations ***\n"; 70 // loop through $res_heredoc_strings element and check the working on strip_tags() 74 var_dump( strip_tags($res_heredoc_strings[$index], $quotes) ); 81 *** Testing strip_tags() : usage variations ***
|
H A D | bug45485.phpt | 2 Bug #45485 (strip_tags and <?XML tag) 10 $s = strip_tags($s); 17 $s = strip_tags($s);
|
H A D | bug40432.phpt | 2 Bug #40432 (strip_tags() fails with greater than in attribute) 5 echo strip_tags('<span title="test > all">this</span>') . "\n";
|
H A D | strip_tags_variation2.phpt | 2 Test strip_tags() function : usage variations - unexpected values for 'allowable_tags' 7 /* Prototype : string strip_tags(string $str [, string $allowable_tags]) 13 * testing functionality of strip_tags() by giving unexpected values for $allowable_tags argument 16 echo "*** Testing strip_tags() : usage variations ***\n"; 89 var_dump( strip_tags($string, $value) ); 96 *** Testing strip_tags() : usage variations ***
|
H A D | bug40637.phpt | 2 Bug #40637 (strip_tags() does not handle single quotes correctly) 7 var_dump(strip_tags($html));
|
H A D | bug40704.phpt | 2 Bug #40704 (strip_tags() does not handle single quotes correctly) 7 var_dump(strip_tags($html));
|
/PHP-5.3/Zend/tests/ |
H A D | bug61165.phpt | 2 Bug #61165 (Segfault - strip_tags()) 20 strip_tags($t); 21 strip_tags(new T);
|