?>
--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
?>
--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
?>
--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)
?>
--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)
?>
--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)
?>
--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)
?>
--EXPECTF--
*** Test fopen() & fclose() functions: with 'at' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
string(6) "stream"
int(37)
string(0) ""
?>
--EXPECTF--
*** Test fopen() & fclose() functions: with 'at' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
string(6) "stream"
int(37)
string(0) ""
?>
--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
?>
--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)
?>
--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)
?>
--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
?>
--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
?>
--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)
?>
--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
?>
--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)
?>
--EXPECTF--
*** Test fopen() & fclose() functions: with 'ab' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
string(6) "stream"
int(37)
string(0) ""
?>
--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
?>
--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)
?>
--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)
?>
--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)
?>
--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)
?>
--EXPECTF--
*** Test fopen() & fclose() functions: with 'a' mode ***
-resource(8) of type (stream)
+resource(%d) of type (stream)
string(6) "stream"
int(37)
string(0) ""
?>
--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
?>
--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)
?>
--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)
?>
--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