mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
- Fixed tests (unicode results, UEXPECT, line endings)
This commit is contained in:
parent
e4bcc3fb48
commit
7504d57043
18 changed files with 90 additions and 127 deletions
|
@ -50,7 +50,7 @@ Warning: filter_has_var() expects parameter 2 to be string, array given in %s007
|
|||
bool(false)
|
||||
bool(false)
|
||||
|
||||
Warning: filter_has_var() expects parameter 1 to be long, string given in %s007.php on line %d
|
||||
Warning: filter_has_var() expects parameter 1 to be long, Unicode string given in %s007.php on line %d
|
||||
bool(false)
|
||||
|
||||
Warning: filter_has_var() expects parameter 1 to be long, array given in %s007.php on line %d
|
||||
|
@ -59,6 +59,6 @@ bool(false)
|
|||
Warning: filter_has_var() expects parameter 1 to be long, array given in %s007.php on line %d
|
||||
bool(false)
|
||||
|
||||
Warning: filter_has_var() expects parameter 1 to be long, string given in %s007.php on line %d
|
||||
Warning: filter_has_var() expects parameter 1 to be long, Unicode string given in %s007.php on line %d
|
||||
bool(false)
|
||||
Done
|
||||
|
|
|
@ -40,10 +40,10 @@ float(12345.7)
|
|||
string(29) "<p>string</p>"
|
||||
bool(false)
|
||||
|
||||
Warning: filter_var() expects parameter 2 to be long, string given in %s011.php on line %d
|
||||
Warning: filter_var() expects parameter 2 to be long, Unicode string given in %s011.php on line %d
|
||||
NULL
|
||||
|
||||
Warning: filter_input() expects parameter 3 to be long, string given in %s011.php on line %d
|
||||
Warning: filter_input() expects parameter 3 to be long, Unicode string given in %s011.php on line %d
|
||||
NULL
|
||||
|
||||
Warning: filter_var() expects at most 3 parameters, 5 given in %s011.php on line %d
|
||||
|
|
|
@ -24,16 +24,16 @@ echo "Done\n";
|
|||
?>
|
||||
--EXPECTF--
|
||||
array(2) {
|
||||
["test1"]=>
|
||||
[u"test1"]=>
|
||||
int(1)
|
||||
["test2"]=>
|
||||
[u"test2"]=>
|
||||
int(1)
|
||||
}
|
||||
array(2) {
|
||||
["test1"]=>
|
||||
[u"test1"]=>
|
||||
int(1)
|
||||
["test2"]=>
|
||||
&string(1) "1"
|
||||
[u"test2"]=>
|
||||
&unicode(1) "1"
|
||||
}
|
||||
string(1) "1"
|
||||
unicode(1) "1"
|
||||
Done
|
||||
|
|
|
@ -58,9 +58,9 @@ array(0) {
|
|||
}
|
||||
array(2) {
|
||||
[0]=>
|
||||
string(1) "1"
|
||||
["blah"]=>
|
||||
string(4) "hoho"
|
||||
unicode(1) "1"
|
||||
[u"blah"]=>
|
||||
unicode(4) "hoho"
|
||||
}
|
||||
bool(false)
|
||||
bool(false)
|
||||
|
@ -78,16 +78,16 @@ bool(false)
|
|||
array(0) {
|
||||
}
|
||||
array(1) {
|
||||
["var_name"]=>
|
||||
[u"var_name"]=>
|
||||
NULL
|
||||
}
|
||||
array(1) {
|
||||
["var_name"]=>
|
||||
[u"var_name"]=>
|
||||
NULL
|
||||
}
|
||||
array(1) {
|
||||
["var_name"]=>
|
||||
string(0) ""
|
||||
[u"var_name"]=>
|
||||
unicode(0) ""
|
||||
}
|
||||
-- (5)
|
||||
|
||||
|
@ -98,20 +98,20 @@ Warning: filter_var_array(): Empty keys are not allowed in the definition array
|
|||
bool(false)
|
||||
bool(false)
|
||||
array(1) {
|
||||
[""]=>
|
||||
string(0) ""
|
||||
[u""]=>
|
||||
unicode(0) ""
|
||||
}
|
||||
int(-1)
|
||||
bool(false)
|
||||
array(1) {
|
||||
[""]=>
|
||||
string(0) ""
|
||||
[u""]=>
|
||||
unicode(0) ""
|
||||
}
|
||||
int(100000)
|
||||
bool(false)
|
||||
array(1) {
|
||||
[""]=>
|
||||
string(0) ""
|
||||
[u""]=>
|
||||
unicode(0) ""
|
||||
}
|
||||
string(0) ""
|
||||
unicode(0) ""
|
||||
Done
|
||||
|
|
|
@ -42,45 +42,6 @@ foreach($values as $value) {
|
|||
--EXPECT--
|
||||
*** Testing image_type_to_mime_type() : usage variations ***
|
||||
|
||||
-- Iteration 1 --
|
||||
string(24) "application/octet-stream"
|
||||
|
||||
-- Iteration 2 --
|
||||
string(9) "image/gif"
|
||||
|
||||
-- Iteration 3 --
|
||||
string(24) "application/octet-stream"
|
||||
|
||||
-- Iteration 4 --
|
||||
string(24) "application/octet-stream"
|
||||
|
||||
-- Iteration 5 --
|
||||
string(10) "image/jpeg"
|
||||
|
||||
-- Iteration 6 --
|
||||
string(10) "image/tiff"
|
||||
|
||||
-- Iteration 7 --
|
||||
string(24) "application/octet-stream"
|
||||
|
||||
-- Iteration 8 --
|
||||
string(24) "application/octet-stream"
|
||||
|
||||
-- Iteration 9 --
|
||||
string(24) "application/octet-stream"
|
||||
|
||||
-- Iteration 10 --
|
||||
string(9) "image/gif"
|
||||
|
||||
-- Iteration 11 --
|
||||
string(24) "application/octet-stream"
|
||||
|
||||
-- Iteration 12 --
|
||||
string(24) "application/octet-stream"
|
||||
===DONE===
|
||||
--UEXPECT--
|
||||
*** Testing image_type_to_mime_type() : usage variations ***
|
||||
|
||||
-- Iteration 1 --
|
||||
unicode(24) "application/octet-stream"
|
||||
|
||||
|
|
|
@ -21,12 +21,12 @@ foreach (new RecursiveIteratorIterator($rai) as $t) {
|
|||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
string(1) "z"
|
||||
unicode(1) "z"
|
||||
object(stdClass)#1 (0) {
|
||||
}
|
||||
string(1) "q"
|
||||
string(1) "s"
|
||||
unicode(1) "q"
|
||||
unicode(1) "s"
|
||||
Second:
|
||||
string(1) "z"
|
||||
string(1) "q"
|
||||
string(1) "s"
|
||||
unicode(1) "z"
|
||||
unicode(1) "q"
|
||||
unicode(1) "s"
|
||||
|
|
|
@ -14,3 +14,5 @@ try {
|
|||
?>
|
||||
===DONE===
|
||||
--EXPECTF--
|
||||
unicode(29) "Index invalid or out of range"
|
||||
===DONE===
|
||||
|
|
|
@ -7,4 +7,4 @@ $a = new SplFastArray('FOO');
|
|||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: SplFastArray::__construct() expects parameter 1 to be long, string given in %s on line %d
|
||||
Warning: SplFastArray::__construct() expects parameter 1 to be long, Unicode string given in %s on line %d
|
||||
|
|
|
@ -40,7 +40,7 @@ try {
|
|||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: SplFastArray::__construct() expects parameter 1 to be long, string given in %s on line %d
|
||||
Warning: SplFastArray::__construct() expects parameter 1 to be long, Unicode string given in %s on line %d
|
||||
Index invalid or out of range
|
||||
Index invalid or out of range
|
||||
Index invalid or out of range
|
||||
|
|
|
@ -16,7 +16,7 @@ var_dump($fo->getRealPath());
|
|||
?>
|
||||
==DONE==
|
||||
--EXPECTF--
|
||||
string(%d) "%sspl%stests"
|
||||
string(19) "fileobject_004.phpt"
|
||||
string(%d) "%sspl%stests%sfileobject_004.phpt"
|
||||
unicode(%d) "%sspl%stests"
|
||||
unicode(19) "fileobject_004.phpt"
|
||||
unicode(%d) "%sspl%stests%sfileobject_004.phpt"
|
||||
==DONE==
|
||||
|
|
|
@ -22,7 +22,7 @@ $regexIterator->setMode('foo');
|
|||
?>
|
||||
--EXPECTF--
|
||||
int(0)
|
||||
string(14) "Illegal mode 7"
|
||||
unicode(14) "Illegal mode 7"
|
||||
int(0)
|
||||
|
||||
Warning: RegexIterator::setMode() expects parameter 1 to be long, string given in %s on line %d
|
||||
Warning: RegexIterator::setMode() expects parameter 1 to be long, Unicode string given in %s on line %d
|
||||
|
|
|
@ -23,24 +23,24 @@ var_dump(htmlspecialchars("<>", ENT_COMPAT, str_repeat('a', 100)));
|
|||
?>
|
||||
--EXPECTF--
|
||||
Warning: htmlspecialchars(): charset `1' not supported, assuming iso-8859-1 in %s on line %d
|
||||
string(35) "<a href='test'>Test</a>"
|
||||
unicode(35) "<a href='test'>Test</a>"
|
||||
|
||||
Warning: htmlspecialchars(): charset `12' not supported, assuming iso-8859-1 in %s on line %d
|
||||
string(35) "<a href='test'>Test</a>"
|
||||
unicode(35) "<a href='test'>Test</a>"
|
||||
|
||||
Warning: htmlspecialchars(): charset `125' not supported, assuming iso-8859-1 in %s on line %d
|
||||
string(35) "<a href='test'>Test</a>"
|
||||
string(35) "<a href='test'>Test</a>"
|
||||
unicode(35) "<a href='test'>Test</a>"
|
||||
unicode(35) "<a href='test'>Test</a>"
|
||||
|
||||
Warning: htmlspecialchars(): charset `12526' not supported, assuming iso-8859-1 in %s on line %d
|
||||
string(35) "<a href='test'>Test</a>"
|
||||
string(8) "<>"
|
||||
unicode(35) "<a href='test'>Test</a>"
|
||||
unicode(8) "<>"
|
||||
|
||||
Warning: htmlspecialchars(): charset `8666' not supported, assuming iso-8859-1 in %s on line %d
|
||||
string(8) "<>"
|
||||
string(8) "<>"
|
||||
string(8) "<>"
|
||||
string(8) "<>"
|
||||
unicode(8) "<>"
|
||||
unicode(8) "<>"
|
||||
unicode(8) "<>"
|
||||
unicode(8) "<>"
|
||||
|
||||
Warning: htmlspecialchars(): charset `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' not supported, assuming iso-8859-1 in %s on line %d
|
||||
string(8) "<>"
|
||||
unicode(8) "<>"
|
||||
|
|
|
@ -14,21 +14,21 @@ foreach($strings as $string) {
|
|||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
string(8) "266c743b"
|
||||
string(8) "266c743b"
|
||||
string(0) ""
|
||||
string(0) ""
|
||||
string(4) "d090"
|
||||
string(4) "d090"
|
||||
string(0) ""
|
||||
string(0) ""
|
||||
string(8) "d090d0b0"
|
||||
string(8) "d090d0b0"
|
||||
string(0) ""
|
||||
string(0) ""
|
||||
string(0) ""
|
||||
string(0) ""
|
||||
string(0) ""
|
||||
string(0) ""
|
||||
string(8) "2667743b"
|
||||
string(8) "2667743b"
|
||||
unicode(8) "266c743b"
|
||||
unicode(8) "266c743b"
|
||||
unicode(0) ""
|
||||
unicode(0) ""
|
||||
unicode(4) "d090"
|
||||
unicode(4) "d090"
|
||||
unicode(0) ""
|
||||
unicode(0) ""
|
||||
unicode(8) "d090d0b0"
|
||||
unicode(8) "d090d0b0"
|
||||
unicode(0) ""
|
||||
unicode(0) ""
|
||||
unicode(0) ""
|
||||
unicode(0) ""
|
||||
unicode(0) ""
|
||||
unicode(0) ""
|
||||
unicode(8) "2667743b"
|
||||
unicode(8) "2667743b"
|
||||
|
|
|
@ -9,5 +9,5 @@ mbstring.internal_encoding=pass
|
|||
var_dump(htmlentities("\x80\xa2\xa3\xa4\xa5", ENT_QUOTES, 'cp1252'));
|
||||
?>
|
||||
--EXPECT--
|
||||
string(28) "‚†™Ÿ"
|
||||
string(32) "€¢£¤¥"
|
||||
unicode(28) "‚†™Ÿ"
|
||||
unicode(32) "€¢£¤¥"
|
||||
|
|
|
@ -11,4 +11,4 @@ default_charset=ISO-8859-15
|
|||
?>
|
||||
--EXPECT--
|
||||
ISO-8859-15
|
||||
string(20) "ŒœŸ"
|
||||
unicode(20) "ŒœŸ"
|
||||
|
|
|
@ -11,4 +11,4 @@ default_charset=ISO-8859-1
|
|||
?>
|
||||
--EXPECT--
|
||||
ISO-8859-1
|
||||
string(18) "äöü"
|
||||
unicode(18) "äöü"
|
||||
|
|
|
@ -20,21 +20,21 @@ foreach ($tests as $test) {
|
|||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
string(3) "abc"
|
||||
string(3) "abc"
|
||||
string(13) "abc&sfdsa"
|
||||
string(13) "abc&sfdsa"
|
||||
string(33) "test+s & some more D"
|
||||
string(33) "test+s & some more D"
|
||||
string(24) "&; &amp &#a; &9;"
|
||||
string(24) "&; &amp &#a; &9;"
|
||||
string(32) "&kffjadfdhsjfhjasdhffasdfas;"
|
||||
string(32) "&kffjadfdhsjfhjasdhffasdfas;"
|
||||
string(16) "&#8787978789"
|
||||
string(16) "&#8787978789"
|
||||
string(5) "&"
|
||||
string(5) "&"
|
||||
string(15) "&&&"
|
||||
string(15) "&&&"
|
||||
string(17) "&ab&&"
|
||||
string(17) "&ab&&"
|
||||
unicode(3) "abc"
|
||||
unicode(3) "abc"
|
||||
unicode(13) "abc&sfdsa"
|
||||
unicode(13) "abc&sfdsa"
|
||||
unicode(33) "test+s & some more D"
|
||||
unicode(33) "test+s & some more D"
|
||||
unicode(24) "&; &amp &#a; &9;"
|
||||
unicode(24) "&; &amp &#a; &9;"
|
||||
unicode(32) "&kffjadfdhsjfhjasdhffasdfas;"
|
||||
unicode(32) "&kffjadfdhsjfhjasdhffasdfas;"
|
||||
unicode(16) "&#8787978789"
|
||||
unicode(16) "&#8787978789"
|
||||
unicode(5) "&"
|
||||
unicode(5) "&"
|
||||
unicode(15) "&&&"
|
||||
unicode(15) "&&&"
|
||||
unicode(17) "&ab&&"
|
||||
unicode(17) "&ab&&"
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue