summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2010-04-01 18:04:57 +0000
committerRasmus Lerdorf <rasmus@php.net>2010-04-01 18:04:57 +0000
commit8b1d84a6ce59b89fa593c110f3aa71ac12b55b1d (patch)
treea889fce05338a9aeac599c4ecf68724b07e64e98
parentf534df710efbe6a4450f74930e2666d3baaf57c3 (diff)
downloadphp-git-8b1d84a6ce59b89fa593c110f3aa71ac12b55b1d.tar.gz
Add new full_special_chars filter to tests
-rw-r--r--ext/filter/tests/008.phpt16
-rw-r--r--ext/filter/tests/033.phpt2
2 files changed, 11 insertions, 7 deletions
diff --git a/ext/filter/tests/008.phpt b/ext/filter/tests/008.phpt
index 7ba42fa736..8a4340542f 100644
--- a/ext/filter/tests/008.phpt
+++ b/ext/filter/tests/008.phpt
@@ -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"
}
diff --git a/ext/filter/tests/033.phpt b/ext/filter/tests/033.phpt
index 143d0c10e5..04daa61333 100644
--- a/ext/filter/tests/033.phpt
+++ b/ext/filter/tests/033.phpt
@@ -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