]> granicus.if.org Git - php/commitdiff
fix tests
authorRaghubansh Kumar <kraghuba@php.net>
Tue, 9 Oct 2007 04:52:47 +0000 (04:52 +0000)
committerRaghubansh Kumar <kraghuba@php.net>
Tue, 9 Oct 2007 04:52:47 +0000 (04:52 +0000)
27 files changed:
ext/standard/tests/file/007_variation1.phpt
ext/standard/tests/file/007_variation10.phpt
ext/standard/tests/file/007_variation11-win32.phpt
ext/standard/tests/file/007_variation11.phpt
ext/standard/tests/file/007_variation12-win32.phpt
ext/standard/tests/file/007_variation12.phpt
ext/standard/tests/file/007_variation13-win32.phpt
ext/standard/tests/file/007_variation13.phpt
ext/standard/tests/file/007_variation14.phpt
ext/standard/tests/file/007_variation15.phpt
ext/standard/tests/file/007_variation16.phpt
ext/standard/tests/file/007_variation17.phpt
ext/standard/tests/file/007_variation18.phpt
ext/standard/tests/file/007_variation19.phpt
ext/standard/tests/file/007_variation2.phpt
ext/standard/tests/file/007_variation20.phpt
ext/standard/tests/file/007_variation21.phpt
ext/standard/tests/file/007_variation22.phpt
ext/standard/tests/file/007_variation23.phpt
ext/standard/tests/file/007_variation24.phpt
ext/standard/tests/file/007_variation3.phpt
ext/standard/tests/file/007_variation4.phpt
ext/standard/tests/file/007_variation5.phpt
ext/standard/tests/file/007_variation6.phpt
ext/standard/tests/file/007_variation7.phpt
ext/standard/tests/file/007_variation8.phpt
ext/standard/tests/file/007_variation9.phpt

index 6796994bbdf665568d99ed8ab04c89a3df421060..685ce64e90c3e36cbc049b452f076db71977a20f 100644 (file)
@@ -42,7 +42,7 @@ unlink(dirname(__FILE__)."/007_variation1.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'r' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 string(20) "line
@@ -54,7 +54,7 @@ string(7) "Unknown"
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'r' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 string(20) "line
index 22b132e3ba1d1ba47136d3c397b4377714d3c94e..aafa8afc178933e499f609345159024e14676fdf 100644 (file)
@@ -44,7 +44,7 @@ unlink(dirname(__FILE__)."/007_variation10.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'r+t' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 string(20) "line
@@ -58,7 +58,7 @@ string(7) "Unknown"
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'r+t' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 unicode(20) "line
index 6e56760f5cfe59ff1fda6d86512b8bc3dee9c4ca..a1426f36918993989d355ee04e1063f933559096 100644 (file)
@@ -61,7 +61,7 @@ unlink(dirname(__FILE__)."/007_variation11.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'wt' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 int(37)
@@ -76,7 +76,7 @@ bool(true)
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'wt' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 int(37)
index e6be30e95c14687ee0353e58e29472b4fc3ae9d4..4414d6328329700a96e373885ecd0fce8c6dd8f0 100644 (file)
@@ -61,7 +61,7 @@ unlink(dirname(__FILE__)."/007_variation11.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'wt' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 int(37)
@@ -76,7 +76,7 @@ bool(true)
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'wt' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 int(37)
index beadfd981928d06d02e9403b20749765ede07d05..47602d837344a654b1e5c247daea89497d1edac5 100644 (file)
@@ -61,7 +61,7 @@ unlink(dirname(__FILE__)."/007_variation12.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'w+t' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 int(37)
@@ -78,7 +78,7 @@ bool(true)
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'w+t' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 int(37)
index 00163d2acab0d312398fa7ad2bb22638d908badc..e3c63137ff236ff38d588895e1e442eef5811a03 100644 (file)
@@ -61,7 +61,7 @@ unlink(dirname(__FILE__)."/007_variation12.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'w+t' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 int(37)
@@ -78,7 +78,7 @@ bool(true)
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'w+t' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 int(37)
index 3d764bc13619cb1e0ca353d0cce420156ed87f02..8353bae0a2c2a67d503823679a1f43ecbf358427 100644 (file)
@@ -53,7 +53,7 @@ unlink(dirname(__FILE__)."/007_variation13.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'at' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(37)
 bool(false)
@@ -65,7 +65,7 @@ bool(true)
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'at' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(37)
 bool(false)
index ddb455596364334d34adbfeb4f009c585200b451..5fc147fc1b5c884ac7a90f10482a26e6274d6661 100644 (file)
@@ -53,7 +53,7 @@ unlink(dirname(__FILE__)."/007_variation13.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'at' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(37)
 bool(false)
@@ -65,7 +65,7 @@ bool(true)
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'at' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(37)
 bool(false)
index c12593a84a878f1eee7154996717e6dc74626de2..281861d238911d410aee7cc7a33c5066d848eb02 100644 (file)
@@ -47,7 +47,7 @@ unlink(dirname(__FILE__)."/007_variation14.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'a+t' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(37)
 string(57) "line
@@ -62,7 +62,7 @@ bool(true)
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'a+t' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(37)
 unicode(57) "line
index 9f3ae6b180b7aedc8d088f3d31702e44cb163840..33d56232130e99b53bbe322a48a0af7f7b66de50 100644 (file)
@@ -44,7 +44,7 @@ unlink(dirname(__FILE__)."/007_variation15.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'xt' mode ***
-resource(5) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 int(37)
@@ -58,7 +58,7 @@ Warning: fopen(%s): failed to open stream: File exists in %s on line %d
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'xt' mode ***
-resource(5) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 
index 6f50293254a6cfdf556bb1836ff8dc0b9379745b..ed4a3fb08cae14f8b9db66d83f45cb853167d4d4 100644 (file)
@@ -44,7 +44,7 @@ unlink(dirname(__FILE__)."/007_variation16.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'x+t' mode ***
-resource(5) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 int(37)
@@ -60,7 +60,7 @@ Warning: fopen(%s): failed to open stream: File exists in %s on line %d
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'x+t' mode ***
-resource(5) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 int(37)
index 63b60cf683d86236d66bf807c46c1eb4e2914c64..db088f80b07c331a1b711f163d748ee85a458b7f 100644 (file)
@@ -42,7 +42,7 @@ unlink(dirname(__FILE__)."/007_variation17.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'rb' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 string(20) "line
@@ -54,7 +54,7 @@ string(7) "Unknown"
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'rb' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 string(20) "line
index 277195c190845a8e680a74276cdc742e4c35deed..71c0273a7cd605837e67c77dfb1f686237bd43ec 100644 (file)
@@ -44,7 +44,7 @@ unlink(dirname(__FILE__)."/007_variation18.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'r+b' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 string(20) "line
@@ -58,7 +58,7 @@ string(7) "Unknown"
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'r+b' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 string(20) "line
index 594c3e25b2fffe0494333e319b9c786b5df0244d..b4e9c9919a489a88baeeef8f861b40299e21b68c 100644 (file)
@@ -56,7 +56,7 @@ unlink(dirname(__FILE__)."/007_variation19.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'wb' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 int(37)
@@ -71,7 +71,7 @@ bool(true)
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'wb' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 
index b2ef137cdaedd4ed6b5718a5bdf093e6348b58c9..a48d09c08015e5ebca8d3e7c82ad33f7f8a53040 100644 (file)
@@ -44,7 +44,7 @@ unlink(dirname(__FILE__)."/007_variation2.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'r+' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 string(20) "line
@@ -58,7 +58,7 @@ string(7) "Unknown"
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'r+' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 string(20) "line
index ed4cf10f6db8f4dc55942caba2acc9192d4c21a1..d736381229de49d8075c273dbde04adc1793466c 100644 (file)
@@ -56,7 +56,7 @@ unlink(dirname(__FILE__)."/007_variation20.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'w+b' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 int(37)
@@ -73,7 +73,7 @@ bool(true)
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'w+b' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 
index 4a2fbb5d9cd9f8e4b642685ecebdf479fa8f203a..0cc6b0e9c978675c7dea6ea090fa5aa60c4051dd 100644 (file)
@@ -48,7 +48,7 @@ unlink(dirname(__FILE__)."/007_variation21.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'ab' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(37)
 bool(false)
@@ -60,7 +60,7 @@ bool(true)
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'ab' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 
 Notice: fwrite(): 37 character unicode buffer downcoded for binary stream runtime_encoding in %s on line %d
index 28af71b2e10920cdc8fbc440733438cb85f52dc4..9c7fd9b4ca7558d588e58c0abb281bd3d6519f94 100644 (file)
@@ -47,7 +47,7 @@ unlink(dirname(__FILE__)."/007_variation22.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'a+b' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(37)
 string(57) "line
@@ -62,7 +62,7 @@ bool(true)
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'a+b' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 
 Notice: fwrite(): 37 character unicode buffer downcoded for binary stream runtime_encoding in %s on line %d
index e84a496a2eb3211f02b86894a7f453b447568a41..cf5f96f09e06e2311e4b91bfa5c5a169e7000b29 100644 (file)
@@ -44,7 +44,7 @@ unlink(dirname(__FILE__)."/007_variation23.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'xb' mode ***
-resource(5) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 int(37)
@@ -58,7 +58,7 @@ Warning: fopen(%s): failed to open stream: File exists in %s on line %d
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'xb' mode ***
-resource(5) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 
index fa8706e57304b32e8156a2b07ab48423edad0cff..18fbc4c93567894f36c46cde6491c3beb630cde8 100644 (file)
@@ -44,7 +44,7 @@ unlink(dirname(__FILE__)."/007_variation24.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'x+b' mode ***
-resource(5) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 int(37)
@@ -60,7 +60,7 @@ Warning: fopen(%s): failed to open stream: File exists in %s on line %d
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'x+b' mode ***
-resource(5) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 
index c209e06c36f46dbab78cac7cc4bac4d145b3f6c0..c262af81e2953da0d969f04ce83a1f6550728bf4 100644 (file)
@@ -56,7 +56,7 @@ unlink(dirname(__FILE__)."/007_variation3.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'w' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 int(37)
@@ -71,7 +71,7 @@ bool(true)
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'w' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 
index 1837a9c15b282fb494d144e02629d5489cca14c3..cd8db8b90c44aacbe90006d7c340db13d300864b 100644 (file)
@@ -56,7 +56,7 @@ unlink(dirname(__FILE__)."/007_variation4.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'w+' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 int(37)
@@ -73,7 +73,7 @@ bool(true)
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'w+' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 
index 2bc28b0e90e73f0641a062d7b13058fdd51fdec4..9e55c06b92e141fc39b7ec0e493d18d1865ba767 100644 (file)
@@ -48,7 +48,7 @@ unlink(dirname(__FILE__)."/007_variation5.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'a' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(37)
 bool(false)
@@ -60,7 +60,7 @@ bool(true)
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'a' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 
 Notice: fwrite(): 37 character unicode buffer downcoded for binary stream runtime_encoding in %s on line %d
index 48e93e2aeb8cd082a38f561e14409fec64687e80..498b23966b16ea1cbeaf4ac403433ac2a2287a14 100644 (file)
@@ -47,7 +47,7 @@ unlink(dirname(__FILE__)."/007_variation6.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'a+' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(37)
 string(57) "line
@@ -62,7 +62,7 @@ bool(true)
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'a+' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 
 Notice: fwrite(): 37 character unicode buffer downcoded for binary stream runtime_encoding in %s on line %d
index ad9736d4a2f5a0bd502dc7e3f4de845d13f7dfa9..bdb81b2396f789b8a69c9a949323d2333c3d39b4 100644 (file)
@@ -44,7 +44,7 @@ unlink(dirname(__FILE__)."/007_variation7.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'x' mode ***
-resource(5) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 int(37)
@@ -58,7 +58,7 @@ Warning: fopen(%s): failed to open stream: File exists in %s on line %s
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'x' mode ***
-resource(5) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 
index d0a0e93b4a2232c206bea89e5bcae3468076d62e..7fc98058370dd5c953ca80a307b0085ee6a66ec7 100644 (file)
@@ -44,7 +44,7 @@ unlink(dirname(__FILE__)."/007_variation8.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'x+' mode ***
-resource(5) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 int(37)
@@ -60,7 +60,7 @@ Warning: fopen(%s): failed to open stream: File exists in %s on line %d
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'x+' mode ***
-resource(5) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 
index e69b66625ec88f6fe5c694537afb3734c0bb8f1b..0b2529e01c8ad3a33673705148086a83568fba2b 100644 (file)
@@ -42,7 +42,7 @@ unlink(dirname(__FILE__)."/007_variation9.tmp");
 ?>
 --EXPECTF--
 *** Test fopen() & fclose() functions:  with 'rt' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 string(6) "stream"
 int(0)
 string(20) "line
@@ -54,7 +54,7 @@ string(7) "Unknown"
 *** Done ***
 --UEXPECTF--
 *** Test fopen() & fclose() functions:  with 'rt' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
 unicode(6) "stream"
 int(0)
 unicode(20) "line