Add new full_special_chars filter to tests
authorRasmus Lerdorf <rasmus@php.net>
Thu, 1 Apr 2010 18:04:57 +0000 (18:04 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Thu, 1 Apr 2010 18:04:57 +0000 (18:04 +0000)
ext/filter/tests/008.phpt
ext/filter/tests/033.phpt

index 7ba42fa7364a29155f3602e9a982bcbd8b3a31d3..8a4340542f2d4cfd2064c51ec3e7dbda42a3e015 100644 (file)
@@ -11,7 +11,7 @@ var_dump(filter_list(array()));
 echo "Done\n";
 ?>
 --EXPECTF--    
-array(18) {
+array(19) {
   [0]=>
   string(3) "int"
   [1]=>
@@ -35,18 +35,20 @@ array(18) {
   [10]=>
   string(13) "special_chars"
   [11]=>
-  string(10) "unsafe_raw"
+  string(18) "full_special_chars"
   [12]=>
-  string(5) "email"
+  string(10) "unsafe_raw"
   [13]=>
-  string(3) "url"
+  string(5) "email"
   [14]=>
-  string(10) "number_int"
+  string(3) "url"
   [15]=>
-  string(12) "number_float"
+  string(10) "number_int"
   [16]=>
-  string(12) "magic_quotes"
+  string(12) "number_float"
   [17]=>
+  string(12) "magic_quotes"
+  [18]=>
   string(8) "callback"
 }
 
index 143d0c10e5861f8a2eb921dbfabf2801113658fb..04daa61333970121ce886c92f68f1a689390159f 100644 (file)
@@ -4,6 +4,7 @@ Test all filters returned by filter_list()
 <?php if (!extension_loaded("filter")) die("skip"); ?>
 --INI--
 precision=14
+default_charset=UTF-8
 --FILE--
 <?php
 include dirname(__FILE__) . '/033_run.inc';
@@ -20,6 +21,7 @@ string              PHP  1  foo@bar.com    http://a.b.c        1.2.3.4   123  12
 stripped            PHP  1  foo@bar.com    http://a.b.c        1.2.3.4   123  123abc()            O&#39;Henry    하퍼    
 encoded             PHP  1  foo%40bar.com  http%3A%2F%2Fa.b.c  1.2.3.4   123  123abc%3C%3E%28%29  O%27Henry      %ED%95%98%ED%8D%BC
 special_chars       PHP  1  foo@bar.com    http://a.b.c        1.2.3.4   123  123abc&#60;&#62;()  O&#39;Henry    하퍼    
+full_special_chars  PHP  1  foo@bar.com    http://a.b.c        1.2.3.4   123  123abc&lt;&gt;()    O&#039;Henry   하퍼    
 unsafe_raw          PHP  1  foo@bar.com    http://a.b.c        1.2.3.4   123  123abc<>()          O'Henry        하퍼    
 email               PHP  1  foo@bar.com    httpa.b.c           1.2.3.4   123  123abc              O'Henry                  
 url                 PHP  1  foo@bar.com    http://a.b.c        1.2.3.4   123  123abc<>()          O'Henry