]> granicus.if.org Git - php/commitdiff
- Fixed tests (unicode results, UEXPECT, line endings)
authorFelipe Pena <felipe@php.net>
Fri, 13 Jun 2008 00:18:57 +0000 (00:18 +0000)
committerFelipe Pena <felipe@php.net>
Fri, 13 Jun 2008 00:18:57 +0000 (00:18 +0000)
18 files changed:
ext/filter/tests/007.phpt
ext/filter/tests/011.phpt
ext/filter/tests/036.phpt
ext/filter/tests/039.phpt
ext/gd/tests/image_type_to_mime_type_variation2.phpt
ext/spl/tests/bug44615.phpt
ext/spl/tests/fastarray_004.phpt
ext/spl/tests/fastarray_009.phpt
ext/spl/tests/fastarray_015.phpt
ext/spl/tests/fileobject_004.phpt
ext/spl/tests/regexIterator_setMode_error.phpt
ext/standard/tests/strings/bug44703.phpt
ext/standard/tests/strings/htmlentities-utf.phpt
ext/standard/tests/strings/htmlentities01.phpt
ext/standard/tests/strings/htmlentities11.phpt
ext/standard/tests/strings/htmlentities12.phpt
ext/standard/tests/strings/htmlentities18.phpt
ext/standard/tests/strings/substr.phpt

index 96e0b5f18cea015228b6cc65d21657ce441eac71..76a3737f505aac9333ae544f00d42d78e3eccc4e 100644 (file)
@@ -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
index 6a9bf1fa34cce7f0c802253f2ba96255eee7c12d..b728c72f1a06bfa74cb8b27daa9a6f67c722148f 100644 (file)
@@ -40,10 +40,10 @@ float(12345.7)
 string(29) "&#60;p&#62;string&#60;/p&#62;"
 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
index 954326661d5397602477ac8410757db6b38e3b88..4e35a1ea3674a46ff6045ba96be988e20a302642 100644 (file)
@@ -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
index ae883db3e3251426027b08418ec29d869f5d7dd4..27c91a3142699f0d7ae11383dec4a4d81b92a1a3 100644 (file)
@@ -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
index 159e7cf53fdef4a9a0f17009ff4943c907eb0b98..f53a38bd0becfd74ce482c4bb6d73580d83744ce 100644 (file)
@@ -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"
 
index 1fd3d199dc415736b9013d97f70b1baf9d5884b9..88aa7ab15ad8bc44ac1ad516e960662704f0a473 100644 (file)
@@ -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"
index ff7b0a1ff4517f1ec9cba09b71e52b08f4c2bb3d..8202c54e0ecea6ca714223f9a1ee8bb7a1327186 100644 (file)
@@ -14,3 +14,5 @@ try {
 ?>
 ===DONE===
 --EXPECTF--
+unicode(29) "Index invalid or out of range"
+===DONE===
index daead117cccfd637bc286d33cfa5e305854fcc6a..a223ef581cc4a231cc551b23ffadc5add7bb1735 100644 (file)
@@ -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
index 9f34b63efc3d58357bbea204f86f702376eebec5..03f5eca2b70eee95b7859041398e11eb6310b043 100644 (file)
@@ -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
index 02e6725853c290981307d71f268e7cbf6674a0da..e2a3575171978c8b5af00fec527d6a0f854920ef 100644 (file)
@@ -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==
index 52af499d7e53fe78edc9a9226bef25dbe8ba5448..6b4620876526584346dbe0e1b3dc5e4e5d4cc85a 100644 (file)
@@ -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
index 68468e25e5e83461837713c13a458d3973a31a00..9f8d5db7ad9e86ec711393df1f25fd930cfb416e 100644 (file)
@@ -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) "&lt;a href='test'&gt;Test&lt;/a&gt;"
+unicode(35) "&lt;a href='test'&gt;Test&lt;/a&gt;"
 
 Warning: htmlspecialchars(): charset `12' not supported, assuming iso-8859-1 in %s on line %d
-string(35) "&lt;a href='test'&gt;Test&lt;/a&gt;"
+unicode(35) "&lt;a href='test'&gt;Test&lt;/a&gt;"
 
 Warning: htmlspecialchars(): charset `125' not supported, assuming iso-8859-1 in %s on line %d
-string(35) "&lt;a href='test'&gt;Test&lt;/a&gt;"
-string(35) "&lt;a href='test'&gt;Test&lt;/a&gt;"
+unicode(35) "&lt;a href='test'&gt;Test&lt;/a&gt;"
+unicode(35) "&lt;a href='test'&gt;Test&lt;/a&gt;"
 
 Warning: htmlspecialchars(): charset `12526' not supported, assuming iso-8859-1 in %s on line %d
-string(35) "&lt;a href='test'&gt;Test&lt;/a&gt;"
-string(8) "&lt;&gt;"
+unicode(35) "&lt;a href='test'&gt;Test&lt;/a&gt;"
+unicode(8) "&lt;&gt;"
 
 Warning: htmlspecialchars(): charset `8666' not supported, assuming iso-8859-1 in %s on line %d
-string(8) "&lt;&gt;"
-string(8) "&lt;&gt;"
-string(8) "&lt;&gt;"
-string(8) "&lt;&gt;"
+unicode(8) "&lt;&gt;"
+unicode(8) "&lt;&gt;"
+unicode(8) "&lt;&gt;"
+unicode(8) "&lt;&gt;"
 
 Warning: htmlspecialchars(): charset `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' not supported, assuming iso-8859-1 in %s on line %d
-string(8) "&lt;&gt;"
+unicode(8) "&lt;&gt;"
index 456508c8f71ecb701c08e35aaa9b63aea677e8c4..9aad7f225f36e7c864c8db5277d8ee5d4cebc428 100755 (executable)
@@ -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"
index 4ab49472d1f38fd7bf9714e9c09ff7186e7fccdb..8943a44a273f4e47c993e371a091440b63c43548 100644 (file)
@@ -9,5 +9,5 @@ mbstring.internal_encoding=pass
        var_dump(htmlentities("\x80\xa2\xa3\xa4\xa5", ENT_QUOTES, 'cp1252'));
 ?>
 --EXPECT--
-string(28) "&sbquo;&dagger;&trade;&Yuml;"
-string(32) "&euro;&cent;&pound;&curren;&yen;"
+unicode(28) "&sbquo;&dagger;&trade;&Yuml;"
+unicode(32) "&euro;&cent;&pound;&curren;&yen;"
index 62b6aec7c8e36f73186418184a2d8dd8e18b0393..c6482c4c79e1d3b6329ee2c8f56a76e28817c34c 100644 (file)
@@ -11,4 +11,4 @@ default_charset=ISO-8859-15
 ?>
 --EXPECT--
 ISO-8859-15
-string(20) "&OElig;&oelig;&Yuml;"
+unicode(20) "&OElig;&oelig;&Yuml;"
index 826706680d4f06cc528876168709fdc63ab8af0f..d19e8e41b9e4ac3b6b7356d851e7d3f1215b6cb7 100644 (file)
@@ -11,4 +11,4 @@ default_charset=ISO-8859-1
 ?>
 --EXPECT--
 ISO-8859-1
-string(18) "&auml;&ouml;&uuml;"
+unicode(18) "&auml;&ouml;&uuml;"
index ab3df05da87b80a246ef37674d797371b47d01bf..381cc838ed700b1ed7bcdae2fc0503c2a30fd510 100644 (file)
@@ -20,21 +20,21 @@ foreach ($tests as $test) {
 }
 ?>
 --EXPECT--
-string(3) "abc"
-string(3) "abc"
-string(13) "abc&amp;sfdsa"
-string(13) "abc&amp;sfdsa"
-string(33) "test&#043;s &amp; some more &#68;"
-string(33) "test&#043;s &amp; some more &#68;"
-string(24) "&; &amp;amp &amp;#a; &9;"
-string(24) "&; &amp;amp &amp;#a; &9;"
-string(32) "&amp;kffjadfdhsjfhjasdhffasdfas;"
-string(32) "&amp;kffjadfdhsjfhjasdhffasdfas;"
-string(16) "&amp;#8787978789"
-string(16) "&amp;#8787978789"
-string(5) "&amp;"
-string(5) "&amp;"
-string(15) "&amp;&amp;&amp;"
-string(15) "&amp;&amp;&amp;"
-string(17) "&amp;ab&amp;&amp;"
-string(17) "&amp;ab&amp;&amp;"
+unicode(3) "abc"
+unicode(3) "abc"
+unicode(13) "abc&amp;sfdsa"
+unicode(13) "abc&amp;sfdsa"
+unicode(33) "test&#043;s &amp; some more &#68;"
+unicode(33) "test&#043;s &amp; some more &#68;"
+unicode(24) "&; &amp;amp &amp;#a; &9;"
+unicode(24) "&; &amp;amp &amp;#a; &9;"
+unicode(32) "&amp;kffjadfdhsjfhjasdhffasdfas;"
+unicode(32) "&amp;kffjadfdhsjfhjasdhffasdfas;"
+unicode(16) "&amp;#8787978789"
+unicode(16) "&amp;#8787978789"
+unicode(5) "&amp;"
+unicode(5) "&amp;"
+unicode(15) "&amp;&amp;&amp;"
+unicode(15) "&amp;&amp;&amp;"
+unicode(17) "&amp;ab&amp;&amp;"
+unicode(17) "&amp;ab&amp;&amp;"
index eda3f4c80886e6f9ae03d9c9da899b7af94f083f..9197ab5cc79d6708eb8d685583a9a2f2bba2f4a8 100644 (file)
Binary files a/ext/standard/tests/strings/substr.phpt and b/ext/standard/tests/strings/substr.phpt differ