- killed off UEXPECT

This commit is contained in:
Steph Fox 2008-05-27 09:34:55 +00:00
parent 4ccb8869e7
commit a4cb8c536f
498 changed files with 788 additions and 118781 deletions

View file

@ -39,21 +39,7 @@ echo "\n*** Done ***\n";
unlink(dirname(__FILE__)."/005_basic.tmp");
unlink(dirname(__FILE__)."/005_basic");
?>
--EXPECTF--
*** Testing the basic functionality with file ***
%d:%s:%s:%d:%d:%d
%d:%s:%s:%d:%d:%d
%d:%s:%s:%d:%d:%d
%d:%s:%s:%d:%d:%d
*** Testing the basic functionality with dir ***
%d:%s:%s:%d:%d:%d
%d:%s:%s:%d:%d:%d
%d:%s:%s:%d:%d:%d
%d:%s:%s:%d:%d:%d
*** Done ***
--UEXPECTF--
--EXPECTF--
*** Testing the basic functionality with file ***
%d:%s:%s:%d:%d:%d
%d:%s:%s:%d:%d:%d

View file

@ -56,75 +56,7 @@ var_dump( touch(__FILE__, 10, 100, 123) );
echo "\nDone";
?>
--EXPECTF--
*** Testing error conditions ***
-- Testing with Non-existing files --
Warning: fileatime(): stat failed for /no/such/file/or/dir in %s on line %d
bool(false)
Warning: filemtime(): stat failed for /no/such/file/or/dir in %s on line %d
bool(false)
Warning: filectime(): stat failed for /no/such/file/or/dir in %s on line %d
bool(false)
Warning: touch(): Unable to create file /no/such/file/or/dir because No such file or directory in %s on line %d
bool(false)
Warning: fileatime() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Warning: filemtime() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Warning: filectime() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Warning: touch() expects at most 3 parameters, 4 given in %s on line %d
NULL
-- Testing No.of arguments less than expected --
Warning: fileatime() expects exactly 1 parameter, 0 given in %s on line %d
NULL
Warning: filemtime() expects exactly 1 parameter, 0 given in %s on line %d
NULL
Warning: filectime() expects exactly 1 parameter, 0 given in %s on line %d
NULL
Warning: touch() expects at least 1 parameter, 0 given in %s on line %d
NULL
-- Testing No.of arguments greater than expected --
Warning: fileatime() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Warning: filemtime() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Warning: filectime() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Warning: touch() expects at most 3 parameters, 4 given in %s on line %d
NULL
Warning: fileatime() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Warning: filemtime() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Warning: filectime() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Warning: touch() expects at most 3 parameters, 4 given in %s on line %d
NULL
Done
--UEXPECTF--
--EXPECTF--
*** Testing error conditions ***
-- Testing with Non-existing files --

View file

@ -219,70 +219,3 @@ bool(true)
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
Done
--UEXPECTF--
*** Testing fileattime(), filemtime(), filectime() & touch() : usage variations ***
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- Checking different times, just after creating the file --
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- Checking different times, after changing the file permission --
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- Checking different times, after writing into the file --
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- Checking different times, after reading from the file --
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- Checking different times, after making a copy of the file --
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- Checking different times, after performing is_file() operation on the file --
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
*** Testing touch() function with different time values ***
bool(true)
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
bool(true)
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
bool(true)
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
bool(true)
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
bool(true)
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
Done

View file

@ -241,80 +241,3 @@ bool(true)
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
Done
--UEXPECTF--
*** Testing fileattime(), filemtime(), filectime() & touch() : usage variations ***
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- Checking different times, just after creating the file --
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- Checking different times, after changing the file permission --
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- Checking different times, after writing into the file --
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- Checking different times, after reading from the file --
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- Checking different times, after creating a softlink to the file --
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- Checking different times, after creating a hardlink to the file --
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- Checking different times, after making a copy of the file --
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- Checking different times, after performing is_file() operation on the file --
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
*** Testing touch() function with different time values ***
bool(true)
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
bool(true)
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
bool(true)
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
bool(true)
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
bool(true)
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
-- File access time is => %d:%s:%s:%d:%d:%d
-- File modification time is => %d:%s:%s:%d:%d:%d
-- inode change time is => %d:%s:%s:%d:%d:%d
Done

View file

@ -49,14 +49,7 @@ echo "Done";
unlink(dirname(__FILE__)."/perm.tmp");
rmdir(dirname(__FILE__)."/perm");
?>
--EXPECTF--
*** Testing fileperms(), chmod() with files and dirs ***
bool(true)
100755
bool(true)
40777
Done
--UEXPECTF--
--EXPECT--
*** Testing fileperms(), chmod() with files and dirs ***
bool(true)
100755

View file

@ -68,46 +68,6 @@ unlink( dirname(__FILE__)."/006_error.tmp");
--EXPECTF--
*** Testing error conditions for fileperms(), chmod() ***
Warning: chmod(): %s in %s on line %d
bool(false)
100%d44
Warning: chmod(): %s in %s on line %d
bool(false)
40755
Warning: chmod(): No such file or directory in %s on line %d
bool(false)
Warning: fileperms(): stat failed for /no/such/file/dir in %s on line %d
bool(false)
Warning: chmod() expects exactly 2 parameters, 1 given in %s on line %d
NULL
Warning: chmod() expects exactly 2 parameters, 1 given in %s on line %d
NULL
Warning: chmod() expects exactly 2 parameters, 0 given in %s on line %d
NULL
Warning: fileperms() expects exactly 1 parameter, 0 given in %s on line %d
NULL
Warning: chmod() expects exactly 2 parameters, 3 given in %s on line %d
NULL
Warning: fileperms() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Warning: fileperms() expects exactly 1 parameter, 2 given in %s on line %d
NULL
*** Done ***
--UEXPECTF--
*** Testing error conditions for fileperms(), chmod() ***
Warning: chmod(): %s in %s on line %d
bool(false)
100644

File diff suppressed because it is too large Load diff

View file

@ -88,103 +88,7 @@ chmod(dirname(__FILE__)."/006_variation2", 0777);
unlink(dirname(__FILE__)."/006_variation2.tmp");
rmdir(dirname(__FILE__)."/006_variation2");
?>
--EXPECTF--
*** Testing fileperms() & chmod() : usage variations ***
*** Testing fileperms(), chmod() with miscellaneous permissions ***
-- Iteration 1 --
bool(true)
107777
bool(true)
47777
-- Iteration 2 --
bool(true)
100000
bool(true)
40000
-- Iteration 3 --
bool(true)
101000
bool(true)
41000
-- Iteration 4 --
bool(true)
101111
bool(true)
41111
-- Iteration 5 --
bool(true)
107001
bool(true)
47001
-- Iteration 6 --
bool(true)
100001
bool(true)
40001
-- Iteration 7 --
bool(true)
101411
bool(true)
41411
-- Iteration 8 --
bool(true)
107141
bool(true)
47141
-- Iteration 9 --
bool(true)
100637
bool(true)
40637
-- Iteration 10 --
bool(true)
103567
bool(true)
43567
-- Iteration 11 --
bool(true)
103567
bool(true)
43567
-- Iteration 12 --
Warning: chmod() expects parameter 2 to be long, string given in %s on line %d
NULL
103567
Warning: chmod() expects parameter 2 to be long, string given in %s on line %d
NULL
43567
-- Iteration 13 --
Warning: chmod() expects parameter 2 to be long, string given in %s on line %d
NULL
103567
Warning: chmod() expects parameter 2 to be long, string given in %s on line %d
NULL
43567
-- Iteration 14 --
Warning: chmod() expects parameter 2 to be long, string given in %s on line %d
NULL
103567
Warning: chmod() expects parameter 2 to be long, string given in %s on line %d
NULL
43567
-- Iteration 15 --
Warning: chmod() expects parameter 2 to be long, string given in %s on line %d
NULL
103567
Warning: chmod() expects parameter 2 to be long, string given in %s on line %d
NULL
43567
*** Done ***
--UEXPECTF--
--EXPECTF--
*** Testing fileperms() & chmod() : usage variations ***
*** Testing fileperms(), chmod() with miscellaneous permissions ***

View file

@ -410,325 +410,3 @@ bool(false)
resource(%d) of type (Unknown)
*** Done ***
--UEXPECTF--
*** Testing basic operations of fopen() and fclose() functions ***
-- Iteration with mode 'w' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
-- Iteration with mode 'wb' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
-- Iteration with mode 'wt' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
-- Iteration with mode 'w+' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
-- Iteration with mode 'w+b' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
-- Iteration with mode 'w+t' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
-- Iteration with mode 'r' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
-- Iteration with mode 'rb' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
-- Iteration with mode 'rt' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
-- Iteration with mode 'r+' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
-- Iteration with mode 'r+b' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
-- Iteration with mode 'r+t' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
-- Iteration with mode 'a' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
-- Iteration with mode 'ab' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
-- Iteration with mode 'at' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
-- Iteration with mode 'a+' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
-- Iteration with mode 'a+t' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
-- Iteration with mode 'a+b' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
-- Iteration with mode 'x' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
resource(%d) of type (Unknown)
-- Iteration with mode 'xb' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
resource(%d) of type (Unknown)
-- Iteration with mode 'xt' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
resource(%d) of type (Unknown)
-- Iteration with mode 'x+' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
resource(%d) of type (Unknown)
-- Iteration with mode 'x+b' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
resource(%d) of type (Unknown)
-- Iteration with mode 'x+t' --
resource(%d) of type (stream)
int(0)
bool(false)
bool(true)
resource(%d) of type (Unknown)
Warning: ftell(): %d is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): %d is not a valid stream resource in %s on line %d
bool(false)
resource(%d) of type (Unknown)
*** Done ***

View file

@ -169,107 +169,3 @@ bool(false)
Warning: feof(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
--UEXPECTF--
*** Testing error conditions for fopen(), fclsoe() & feof() ***
Warning: fopen() expects at least 2 parameters, 1 given in %s on line %d
bool(false)
Warning: fopen() expects at least 2 parameters, 0 given in %s on line %d
bool(false)
Warning: fclose(): 5 is not a valid stream resource in %s on line %d
bool(false)
Warning: fclose(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
Warning: Wrong parameter count for fclose() in %s on line %d
NULL
Warning: feof(): 5 is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
Warning: Wrong parameter count for feof() in %s on line %d
NULL
Warning: fopen() expects at most 4 parameters, 5 given in %s on line %d
bool(false)
Warning: Wrong parameter count for fclose() in %s on line %d
NULL
Warning: Wrong parameter count for feof() in %s on line %d
NULL
-- Testing fopen(), fclose() & feof() with invalid arguments --
-- Iteration 1 --
Warning: fopen(string): failed to open stream: No such file or directory in %s on line %d
bool(false)
Warning: fclose(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
-- Iteration 2 --
Warning: fopen(10): failed to open stream: No such file or directory in %s on line %d
bool(false)
Warning: fclose(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
-- Iteration 3 --
Warning: fopen(10.5): failed to open stream: No such file or directory in %s on line %d
bool(false)
Warning: fclose(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
-- Iteration 4 --
Warning: fopen(1): failed to open stream: No such file or directory in %s on line %d
bool(false)
Warning: fclose(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
-- Iteration 5 --
Notice: Array to string conversion in %s on line %d
Warning: fopen(Array): failed to open stream: No such file or directory in %s on line %d
bool(false)
Warning: fclose(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
-- Iteration 6 --
bool(false)
Warning: fclose(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
-- Iteration 7 --
bool(false)
Warning: fclose(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
Warning: feof(): supplied argument is not a valid stream resource in %s on line %d
bool(false)

View file

@ -43,18 +43,6 @@ unlink(dirname(__FILE__)."/007_variation1.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'r' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
string(20) "line
line of text
li"
int(0)
bool(true)
string(7) "Unknown"
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'r' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(0)
string(20) "line

View file

@ -45,20 +45,6 @@ unlink(dirname(__FILE__)."/007_variation10.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'r+t' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
string(20) "line
line of text
li"
int(20)
int(37)
int(57)
bool(true)
string(7) "Unknown"
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'r+t' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(0)
unicode(20) "line
@ -69,4 +55,4 @@ int(37)
int(57)
bool(true)
unicode(7) "Unknown"
*** Done ***
*** Done ***

View file

@ -62,21 +62,6 @@ unlink(dirname(__FILE__)."/007_variation11.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'wt' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
int(37)
int(37)
bool(false)
int(0)
bool(true)
string(7) "Unknown"
int(39)
int(0)
bool(true)
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'wt' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(0)
int(37)

View file

@ -62,21 +62,6 @@ unlink(dirname(__FILE__)."/007_variation11.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'wt' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
int(37)
int(37)
bool(false)
int(0)
bool(true)
string(7) "Unknown"
int(37)
int(0)
bool(true)
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'wt' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(0)
int(37)

View file

@ -62,23 +62,6 @@ unlink(dirname(__FILE__)."/007_variation12.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'w+t' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
int(37)
int(37)
string(37) "abcdefghij
mnopqrst uvwxyz
0123456789"
int(37)
bool(true)
string(7) "Unknown"
int(39)
int(0)
bool(true)
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'w+t' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(0)
int(37)

View file

@ -62,23 +62,6 @@ unlink(dirname(__FILE__)."/007_variation12.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'w+t' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
int(37)
int(37)
string(37) "abcdefghij
mnopqrst uvwxyz
0123456789"
int(37)
bool(true)
string(7) "Unknown"
int(37)
int(0)
bool(true)
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'w+t' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(0)
int(37)

View file

@ -54,18 +54,6 @@ unlink(dirname(__FILE__)."/007_variation13.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'at' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(37)
bool(false)
int(0)
bool(true)
string(7) "Unknown"
int(59)
bool(true)
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'at' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(37)
bool(false)

View file

@ -54,18 +54,6 @@ unlink(dirname(__FILE__)."/007_variation13.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'at' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(37)
bool(false)
int(0)
bool(true)
string(7) "Unknown"
int(57)
bool(true)
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'at' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(37)
bool(false)

View file

@ -48,21 +48,6 @@ unlink(dirname(__FILE__)."/007_variation14.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'a+t' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(37)
string(57) "line
line of text
liabcdefghij
mnopqrst uvwxyz
0123456789"
int(57)
bool(true)
string(7) "Unknown"
bool(true)
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'a+t' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(37)
unicode(57) "line

View file

@ -45,20 +45,6 @@ unlink(dirname(__FILE__)."/007_variation15.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'xt' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
int(37)
int(37)
bool(false)
int(0)
bool(true)
string(7) "Unknown"
Warning: fopen(%s): failed to open stream: File exists in %s on line %d
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'xt' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(0)

View file

@ -45,22 +45,6 @@ unlink(dirname(__FILE__)."/007_variation16.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'x+t' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
int(37)
int(37)
string(37) "abcdefghij
mnopqrst uvwxyz
0123456789"
int(37)
bool(true)
string(7) "Unknown"
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(%d) of type (stream)
unicode(6) "stream"
int(0)
int(37)

View file

@ -43,18 +43,6 @@ unlink(dirname(__FILE__)."/007_variation17.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'rb' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
string(20) "line
line of text
li"
int(0)
bool(true)
string(7) "Unknown"
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'rb' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(0)
string(20) "line

View file

@ -45,20 +45,6 @@ unlink(dirname(__FILE__)."/007_variation18.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'r+b' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
string(20) "line
line of text
li"
int(20)
int(37)
int(57)
bool(true)
string(7) "Unknown"
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'r+b' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(0)
string(20) "line

View file

@ -57,21 +57,6 @@ unlink(dirname(__FILE__)."/007_variation19.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'wb' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
int(37)
int(37)
bool(false)
int(0)
bool(true)
string(7) "Unknown"
int(37)
int(0)
bool(true)
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'wb' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(0)

View file

@ -45,20 +45,6 @@ unlink(dirname(__FILE__)."/007_variation2.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'r+' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
string(20) "line
line of text
li"
int(20)
int(37)
int(57)
bool(true)
string(7) "Unknown"
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'r+' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(0)
string(20) "line

View file

@ -57,23 +57,6 @@ unlink(dirname(__FILE__)."/007_variation20.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'w+b' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
int(37)
int(37)
string(37) "abcdefghij
mnopqrst uvwxyz
0123456789"
int(37)
bool(true)
string(7) "Unknown"
int(37)
int(0)
bool(true)
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'w+b' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(0)

View file

@ -49,18 +49,6 @@ unlink(dirname(__FILE__)."/007_variation21.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'ab' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(37)
bool(false)
int(0)
bool(true)
string(7) "Unknown"
int(57)
bool(true)
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'ab' mode ***
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

View file

@ -48,21 +48,6 @@ unlink(dirname(__FILE__)."/007_variation22.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'a+b' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(37)
string(57) "line
line of text
liabcdefghij
mnopqrst uvwxyz
0123456789"
int(57)
bool(true)
string(7) "Unknown"
bool(true)
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'a+b' mode ***
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

View file

@ -45,20 +45,6 @@ unlink(dirname(__FILE__)."/007_variation23.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'xb' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
int(37)
int(37)
bool(false)
int(0)
bool(true)
string(7) "Unknown"
Warning: fopen(%s): failed to open stream: File exists in %s on line %d
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'xb' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(0)

View file

@ -45,22 +45,6 @@ unlink(dirname(__FILE__)."/007_variation24.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'x+b' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
int(37)
int(37)
string(37) "abcdefghij
mnopqrst uvwxyz
0123456789"
int(37)
bool(true)
string(7) "Unknown"
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(%d) of type (stream)
unicode(6) "stream"
int(0)

View file

@ -57,21 +57,6 @@ unlink(dirname(__FILE__)."/007_variation3.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'w' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
int(37)
int(37)
bool(false)
int(0)
bool(true)
string(7) "Unknown"
int(37)
int(0)
bool(true)
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'w' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(0)

View file

@ -57,23 +57,6 @@ unlink(dirname(__FILE__)."/007_variation4.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'w+' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
int(37)
int(37)
string(37) "abcdefghij
mnopqrst uvwxyz
0123456789"
int(37)
bool(true)
string(7) "Unknown"
int(37)
int(0)
bool(true)
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'w+' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(0)

View file

@ -49,18 +49,6 @@ unlink(dirname(__FILE__)."/007_variation5.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'a' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(37)
bool(false)
int(0)
bool(true)
string(7) "Unknown"
int(57)
bool(true)
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'a' mode ***
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

View file

@ -48,21 +48,6 @@ unlink(dirname(__FILE__)."/007_variation6.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'a+' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(37)
string(57) "line
line of text
liabcdefghij
mnopqrst uvwxyz
0123456789"
int(57)
bool(true)
string(7) "Unknown"
bool(true)
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'a+' mode ***
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

View file

@ -45,20 +45,6 @@ unlink(dirname(__FILE__)."/007_variation7.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'x' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
int(37)
int(37)
bool(false)
int(0)
bool(true)
string(7) "Unknown"
Warning: fopen(%s): failed to open stream: File exists in %s on line %s
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'x' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(0)

View file

@ -45,22 +45,6 @@ unlink(dirname(__FILE__)."/007_variation8.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'x+' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
int(37)
int(37)
string(37) "abcdefghij
mnopqrst uvwxyz
0123456789"
int(37)
bool(true)
string(7) "Unknown"
Warning: fopen(%s): failed to open stream: File exists in %s on line %d
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'x+' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(0)

View file

@ -43,18 +43,6 @@ unlink(dirname(__FILE__)."/007_variation9.tmp");
--EXPECTF--
*** Test fopen() & fclose() functions: with 'rt' mode ***
resource(%d) of type (stream)
string(6) "stream"
int(0)
string(20) "line
line of text
li"
int(0)
bool(true)
string(7) "Unknown"
*** Done ***
--UEXPECTF--
*** Test fopen() & fclose() functions: with 'rt' mode ***
resource(%d) of type (stream)
unicode(6) "stream"
int(0)
unicode(20) "line

View file

@ -10,43 +10,6 @@ while($line = fgetcsv($fp, 24)) {
fclose($fp);
?>
--EXPECT--
array(4) {
[0]=>
string(1) "6"
[1]=>
string(1) "7"
[2]=>
string(1) "8"
[3]=>
string(5) "line1"
}
array(4) {
[0]=>
string(1) "1"
[1]=>
string(1) "2"
[2]=>
string(1) "3"
[3]=>
string(186) "line2
2,4,5,line3
2,4,5,line3
2,4,5,line3
2,4,5,line3
2,4,5,line3
2,4,5,line3
2,4,5,line3
2,4,5,line3
2,4,5,line3
2,4,5,line3
2,4,5,line3
2,4,5,line3
2,4,5,line3
2,4,5,line3
2,4,5,line3
"
}
--UEXPECT--
array(4) {
[0]=>
unicode(1) "6"

View file

@ -7,7 +7,7 @@ include (dirname(__FILE__));
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Warning: include(%s): failed to open stream: %s in %s on line %d
Warning: include(): Failed opening '%s' for inclusion (include_path='%s') in %s on line %d

View file

@ -18,7 +18,7 @@ var_dump(file_get_contents($filename));
echo "Done\n";
?>
--EXPECTF--
--EXPECT--
string(15) "Guvf vf n grfg
"
Done

View file

@ -33,11 +33,7 @@ unlink($file);
echo "Done\n";
?>
--EXPECT--
string(26) "size of contents 1 = 20000"
string(26) "size of contents 2 = 40960"
Done
--UEXPECT--
--EXPECT--
unicode(26) "size of contents 1 = 20000"
unicode(26) "size of contents 2 = 40960"
Done

View file

@ -28,7 +28,7 @@ unlink($new_file);
echo "Done\n";
?>
--EXPECTF--
--EXPECT--
int(134)
string(134) "Nabgure qnl
Jura gur cnvaf bs yvsr jba'g one zl jnl

View file

@ -101,18 +101,7 @@ var_dump($myvar);
echo "Done\n";
?>
--EXPECTF--
Warning: Missing argument 1 for VariableStream::VariableStream() in %s on line %d
string(12) "constructor!"
line1
line2
line3
string(18) "line1
line2
line3
"
Done
--UEXPECTF--
--EXPECTF--
Warning: Missing argument 1 for VariableStream::VariableStream() in %s on line %d
unicode(12) "constructor!"
line1

View file

@ -101,18 +101,7 @@ var_dump($myvar);
echo "Done\n";
?>
--EXPECTF--
Warning: Missing argument 1 for VariableStream::__construct() in %s on line %d
string(12) "constructor!"
line1
line2
line3
string(18) "line1
line2
line3
"
Done
--UEXPECTF--
--EXPECTF--
Warning: Missing argument 1 for VariableStream::__construct() in %s on line %d
unicode(12) "constructor!"
line1

View file

@ -101,7 +101,7 @@ var_dump($myvar);
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Warning: Missing argument 1 for VariableStream::__construct() in %s on line %d
Warning: fopen(var://myvar): failed to open stream: "VariableStream::stream_open" call failed in %s on line %d

View file

@ -101,5 +101,5 @@ var_dump($myvar);
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Catchable fatal error: Argument 1 passed to VariableStream::__construct() must be an array, none given in %s on line %d

View file

@ -20,9 +20,7 @@ stream_get_contents($s);
echo "Done\n";
?>
--EXPECTF--
Done
--UEXPECTF--
--EXPECTF--
Done
Notice: Unknown: 0 character unicode buffer downcoded for binary stream runtime_encoding in Unknown on line 0

View file

@ -28,7 +28,7 @@ foreach ($offsets as $offset) {
@unlink($filename);
echo "Done\n";
?>
--EXPECTF--
--EXPECT--
int(13824)
int(13824)
int(0)

View file

@ -12,9 +12,6 @@ unlink($file);
echo "Done\n";
?>
--EXPECTF--
string(%d) "%s"
Done
--UEXPECTF--
--EXPECTF--
unicode(%d) "%s"
Done

View file

@ -17,4 +17,4 @@ array(2) {
backslashes (ex: 1)\"
[1]=>
string(30) "and it isn't the last element$"
}
}

View file

@ -9,4 +9,4 @@ open_basedir=/tmp
echo "Done\n";
?>
--EXPECT--
Done
Done

View file

@ -22,6 +22,6 @@ fclose($reader);
echo "Done\n";
?>
--EXPECTF--
--EXPECT--
OK
Done

View file

@ -15,11 +15,6 @@ unlink($file);
?>
--EXPECT--
array(1) {
[0]=>
string(2) "\n"
}
--UEXPECT--
array(1) {
[0]=>
unicode(2) "\n"

View file

@ -12,19 +12,21 @@ $dirname = dirname(__FILE__);
$file1 = $dirname . DIRECTORY_SEPARATOR . "file1.txt";
$file2 = $dirname . DIRECTORY_SEPARATOR . "file2.txt";
file_put_contents($file1, "this is file 1");
file_put_contents($file2, "this is file 2");
file_put_contents($file1, "this is file 1\n");
file_put_contents($file2, "this is file 2\n");
rename($file1, $file2);
echo "reading file 2: ";
readfile($file2);
if (file_exists($file1)) {
unlink($file1);
}
if (file_exists($file1)) {
unlink($file2);
}
?>
===DONE===
--CLEAN--
<?php
unlink(dirname(__FILE__)."/file1.txt");
unlink(dirname(__FILE__)."/file2.txt");
?>
--EXPECT--
reading file 2: this is file 1
===DONE===

View file

@ -8,6 +8,3 @@ echo "ALIVE\n";
--EXPECTF--
Warning: chown(): parameter 2 should be string or integer, null given in %schown.php on line %d
ALIVE
--UEXPECTF--
Warning: chown(): parameter 2 should be string or integer, null given in %schown.php on line %d
ALIVE

View file

@ -17,9 +17,3 @@ echo "*** Done ***\n";
Warning: clearstatcache() expects exactly 0 parameters, 1 given in %s on line %d
NULL
*** Done ***
--UEXPECTF--
*** Testing clearstatcache() function: error conditions ***
Warning: clearstatcache() expects exactly 0 parameters, 1 given in %s on line %d
NULL
*** Done ***

View file

@ -55,17 +55,3 @@ bool(true)
%d
%d
*** Done ***
--UEXPECTF--
*** Testing copy() function: to copy file from source to destination --
bool(true)
bool(true)
bool(true)
-- Checking whether the copy of file exists --
bool(true)
bool(true)
-- Checking filepermissions of file and its copies --
%d
%d
%d
*** Done ***

View file

@ -33,22 +33,6 @@ NULL
Warning: copy() expects at least 2 parameters, 1 given in %s on line %d
NULL
Warning: copy() expects parameter 3 to be resource, string given in %s on line %d
NULL
*** Done ***
--UEXPECTF--
*** Testing copy() function: error conditions --
Warning: copy(/no/file): failed to open stream: No such file or directory in %s on line %d
bool(false)
Warning: copy() expects at least 2 parameters, 0 given in %s on line %d
NULL
Warning: copy() expects at least 2 parameters, 1 given in %s on line %d
NULL
Warning: copy() expects parameter 3 to be resource, Unicode string given in %s on line %d
NULL
*** Done ***

View file

@ -143,71 +143,3 @@ Destination file name => %s/copy1.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
*** Done ***
--UEXPECTF--
*** Test copy() function: destination file names containing numerics/strings ***
Size of the source file before copy operation => int(1500)
-- Now applying copy() on source file to create copies --
-- Iteration 1 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/copy.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 2 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/copy_copy_variation1.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 3 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 4 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/123.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 5 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/copy_variation1.123
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 6 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/123
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 7 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/123copy_variation1.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 8 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/copy_variation.tmp123
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 9 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/copy1.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
*** Done ***

View file

@ -29,13 +29,7 @@ echo "*** Done ***\n";
unlink(dirname(__FILE__)."/copy_variation10.tmp");
?>
--EXPECTF--
*** Test copy(): Trying to create a copy of file with the same source name ***
bool(false)
bool(true)
int(1500)
*** Done ***
--UEXPECTF--
--EXPECT--
*** Test copy(): Trying to create a copy of file with the same source name ***
bool(false)
bool(true)

View file

@ -69,21 +69,3 @@ bool(true)
int(300)
int(%d)
*** Done ***
--UEXPECTF--
*** Test copy() function: Trying to create a copy of source file as a dir ***
Size of source before copy operation => int(300)
Size of destination before copy operation => int(%d)
-- Now applying copy() operation --
Warning: %s
bool(false)
bool(true)
bool(true)
bool(true)
bool(false)
bool(false)
bool(true)
int(300)
int(%d)
*** Done ***

View file

@ -40,15 +40,7 @@ rmdir(dirname(__FILE__)."/copy_variation12");
--EXPECTF--
*** Test copy() function: Trying to create a copy of an existing dir ***
Warning: copy(%s): failed to open stream: Permission denied in %s on line %d
bool(false)
bool(false)
int(0)
*** Done ***
--UEXPECTF--
*** Test copy() function: Trying to create a copy of an existing dir ***
Warning: copy(%s): failed to open stream: Permission denied in %s on line %d
Warning: copy(): The first argument to copy() function cannot be a directory in %s on line %d
bool(false)
bool(false)
int(0)

View file

@ -50,14 +50,3 @@ int(%d)
Warning: filesize(): stat failed for %s/copy_copy_variation12 in %s/copy_variation12.php on line %d
bool(false)
*** Done ***
--UEXPECTF--
*** Test copy() function: Trying to create a copy of an existing dir ***
Warning: copy(): The first argument to copy() function cannot be a directory in %s/copy_variation12.php on line %d
bool(false)
bool(false)
int(%d)
Warning: filesize(): stat failed for %s/copy_copy_variation12 in %s/copy_variation12.php on line %d
bool(false)
*** Done ***

View file

@ -44,22 +44,7 @@ rmdir(dirname(__FILE__)."/copy_variation13");
*** Test copy() function: Trying to copy dir to file ***
*** Testing copy() in copying dir to file ***
Warning: copy(): The first argument to copy() function cannot be a directory in %s/copy_variation13.php on line %d
bool(false)
bool(true)
bool(true)
bool(false)
bool(true)
bool(true)
bool(false)
int(%d)
int(%d)
*** Done ***
--UEXPECTF--
*** Test copy() function: Trying to copy dir to file ***
*** Testing copy() in copying dir to file ***
Warning: copy(): The first argument to copy() function cannot be a directory in %s/copy_variation13.php on line %d
Warning: copy(): The first argument to copy() function cannot be a directory in %scopy_variation13.php on line %d
bool(false)
bool(true)
bool(true)

View file

@ -46,15 +46,3 @@ bool(false)
bool(false)
int(1500)
*** Done ***
--UEXPECTF--
*** Test copy() function: Trying to create a copy of non-existing source in existing destination ***
Warning: copy(%s): %s
bool(false)
bool(false)
*** Test copy() function: Trying to create copy of an existing source in non-existing destination ***
Warning: copy(%s): %s
bool(false)
bool(false)
int(1500)
*** Done ***

View file

@ -62,10 +62,3 @@ bool(false)
bool(false)
int(300)
*** Done ***
--UEXPECTF--
*** Test copy() function: Trying to create a copy of file in a dir which doesn't have write permissions ***
Warning: copy(%s): %s
bool(false)
bool(false)
int(300)
*** Done ***

View file

@ -142,64 +142,3 @@ Existence of destination file => bool(true)
Destination file name is => %s/copy_variation16/copy_variation16_sub/copy variation6/copy_copy_variation16.tmp
Size of destination file => int(3500)
*** Done ***
--UEXPECTF--
*** Testing copy() function: copying data file across directories ***
- Size of source file => int(3500)
--- Now applying copy() on source file to create copies ---
-- Iteration 1 --
Size of source file => int(3500)
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation16/copy_copy_variation16.tmp
Size of destination file => int(3500)
-- Iteration 2 --
Size of source file => int(3500)
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation16/copy_variation16_sub/copy_copy_variation16.tmp
Size of destination file => int(3500)
-- Iteration 3 --
Size of source file => int(3500)
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation16/copy_variation16_sub/copy_copy_variation16.tmp
Size of destination file => int(3500)
-- Iteration 4 --
Size of source file => int(3500)
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation16/copy_variation16_sub/../copy_copy_variation16.tmp
Size of destination file => int(3500)
-- Iteration 5 --
Size of source file => int(3500)
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation16/copy_variation16_sub/../copy_variation16_sub/copy_copy_variation16.tmp
Size of destination file => int(3500)
-- Iteration 6 --
Size of source file => int(3500)
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation16/copy_variation16_sub/..///../copy_copy_variation16.tmp
Size of destination file => int(3500)
-- Iteration 7 --
Size of source file => int(3500)
Copy operation =>
Warning: copy(%s): failed to open stream: No such file or directory in %s on line %s
bool(false)
Existence of destination file => bool(false)
-- Iteration 8 --
Size of source file => int(3500)
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation16/copy_variation16_sub/copy variation6/copy_copy_variation16.tmp
Size of destination file => int(3500)
*** Done ***

View file

@ -82,67 +82,6 @@ echo "*** Done ***\n";
--EXPECTF--
*** Testing copy() function: copying data file across directories ***
- Size of source file => int(3500)
--- Now applying copy() on source file to create copies ---
-- Iteration 1 --
Size of source file => int(3500)
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation16/copy_copy_variation16.tmp
Size of destination file => int(3500)
-- Iteration 2 --
Size of source file => int(3500)
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation16/copy_variation16_sub/copy_copy_variation16.tmp
Size of destination file => int(3500)
-- Iteration 3 --
Size of source file => int(3500)
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation16/copy_variation16_sub/copy_copy_variation16.tmp
Size of destination file => int(3500)
-- Iteration 4 --
Size of source file => int(3500)
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation16/copy_variation16_sub/../copy_copy_variation16.tmp
Size of destination file => int(3500)
-- Iteration 5 --
Size of source file => int(3500)
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation16/copy_variation16_sub/../copy_variation16_sub/copy_copy_variation16.tmp
Size of destination file => int(3500)
-- Iteration 6 --
Size of source file => int(3500)
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation16/copy_variation16_sub/..///../copy_copy_variation16.tmp
Size of destination file => int(3500)
-- Iteration 7 --
Size of source file => int(3500)
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation16/copy_variation16_sub/..///../*
Size of destination file => int(3500)
-- Iteration 8 --
Size of source file => int(3500)
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation16/copy_variation16_sub/copy variation6/copy_copy_variation16.tmp
Size of destination file => int(3500)
*** Done ***
--UEXPECTF--
*** Testing copy() function: copying data file across directories ***
Notice: fwrite(): 3500 character unicode buffer downcoded for binary stream runtime_encoding in %s on line %d
- Size of source file => int(3500)

View file

@ -74,25 +74,3 @@ Warning: copy(%s): %s
bool(false)
bool(false)
*** Done ***
--UEXPECTF--
*** Test copy() function: With source file names containing wild-card chars ***
bool(true)
bool(true)
int(1500)
Warning: copy(%s): %s
bool(false)
bool(false)
Warning: copy(%s): %s
bool(false)
bool(false)
Warning: copy(%s): %s
bool(false)
bool(false)
Warning: copy(%s): %s
bool(false)
bool(false)
*** Done ***

View file

@ -43,12 +43,7 @@ echo "*** Done ***\n";
unlink(dirname(__FILE__)."/copy_copy_variation18.tmp");
unlink(dirname(__FILE__)."/copy_variation18.tmp");
?>
--EXPECTF--
*** Test copy() function: stat of file before and after copy ***
Copy operation => bool(true)
Comparing the stats of file before and after copy operation => bool(true)
*** Done ***
--UEXPECTF--
--EXPECT--
*** Test copy() function: stat of file before and after copy ***
Copy operation => bool(true)
Comparing the stats of file before and after copy operation => bool(true)

View file

@ -216,130 +216,3 @@ Destination file name => %s/$copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
*** Done ***
--UEXPECTF--
*** Test copy() function: destination file names containing special characters ***
Size of the source file before copy operation => int(1500)
--- Now applying copy() on source file to create copies ---
-- Iteration 1 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/_copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 2 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/@copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 3 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/#copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 4 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/+copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 5 --
Copy operation =>
Warning: copy(%s): %s
bool(false)
Existence of destination file => bool(false)
-- Iteration 6 --
Copy operation =>
Warning: copy(%s): %s
bool(false)
Existence of destination file => bool(false)
-- Iteration 7 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/!copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 8 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/&copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 9 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/(copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 10 --
Copy operation =>
Warning: copy(%s): %s
bool(false)
Existence of destination file => bool(false)
-- Iteration 11 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/;copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 12 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/=copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 13 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/[copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 14 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/^copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 15 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/{copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 16 --
Copy operation =>
Warning: copy(%s): %s
bool(false)
Existence of destination file => bool(false)
-- Iteration 17 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/~copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 18 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/$copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
*** Done ***

View file

@ -235,148 +235,3 @@ Destination file name => %s/$copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
*** Done ***
--UEXPECTF--
*** Test copy() function: destination file names containing special characters ***
Size of the source file before copy operation => int(1500)
--- Now applying copy() on source file to create copies ---
-- Iteration 1 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/_copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 2 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/@copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 3 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/#copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 4 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/+copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 5 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/*copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 6 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/?copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 7 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/<copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 8 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/>copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 9 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/!copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 10 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/&copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 11 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/(copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 12 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/:copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 13 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/;copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 14 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/=copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 15 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/[copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 16 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/^copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 17 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/{copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 18 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/|copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 19 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/~copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 20 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/$copy_variation2.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
*** Done ***

View file

@ -107,34 +107,3 @@ Warning: copy(%s): %s
bool(false)
Existence of destination file => bool(false)
*** Done ***
--UEXPECTF--
*** Test copy() function: destination file names containing whitespaces ***
Size of the source file before copy operation => int(1500)
-- Now applying copy() on source file to create copies --
-- Iteration 1 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => copy variation3.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 2 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => copy_variation3.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 3 --
Copy operation =>
Warning: copy(%s): %s
bool(false)
Existence of destination file => bool(false)
-- Iteration 4 --
Copy operation =>
Warning: copy(%s): %s
bool(false)
Existence of destination file => bool(false)
*** Done ***

View file

@ -75,40 +75,7 @@ echo "*** Done ***\n";
unlink(dirname(__FILE__)."/copy_variation3.tmp");
?>
--EXPECTF--
*** Test copy() function: destination file names containing whitespaces ***
Size of the source file before copy operation => int(1500)
-- Now applying copy() on source file to create copies --
-- Iteration 1 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => copy variation3.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 2 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => copy_variation3.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 3 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => copy variation3.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 4 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name =>
Size of source file => int(1500)
Size of destination file => int(1500)
*** Done ***
--UEXPECTF--
--EXPECT--
*** Test copy() function: destination file names containing whitespaces ***
Size of the source file before copy operation => int(1500)

View file

@ -109,33 +109,3 @@ Warning: unlink(%s/COPY.TMP): No such file or directory in %s on line %d
Warning: unlink(%s/CopY.TMP): No such file or directory in %s on line %d
*** Done ***
--UEXPECTF--
*** Test copy() function: checking case sensitivity in creation of destination file names ***
Size of the source file before copy operation => int(1500)
-- Now applying copy() on source file to create copies --
-- Iteration 1 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/COPY.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 2 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/COPY.TMP
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 3 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/CopY.TMP
Size of source file => int(1500)
Size of destination file => int(1500)
Warning: unlink(%s/COPY.TMP): No such file or directory in %s on line %d
Warning: unlink(%s/CopY.TMP): No such file or directory in %s on line %d
*** Done ***

View file

@ -104,29 +104,3 @@ Destination file name => %s/CopY.TMP
Size of source file => int(1500)
Size of destination file => int(1500)
*** Done ***
--UEXPECTF--
*** Test copy() function: checking case sensitivity in creation of destination file names ***
Size of the source file before copy operation => int(1500)
-- Now applying copy() on source file to create copies --
-- Iteration 1 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/COPY.tmp
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 2 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/COPY.TMP
Size of source file => int(1500)
Size of destination file => int(1500)
-- Iteration 3 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name => %s/CopY.TMP
Size of source file => int(1500)
Size of destination file => int(1500)
*** Done ***

View file

@ -141,63 +141,3 @@ Destination file name is => %s/copy_variation6/copy_variation6_sub/copy variatio
Size of source file => int(0)
Size of destination file => int(0)
*** Done ***
--UEXPECTF--
*** Test copy() function: copying file across directories ***
Size of source file => int(0)
-- Now applying copy() on source file to create copies --
-- Iteration 1 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation6/copy_copy_variation6.tmp
Size of source file => int(0)
Size of destination file => int(0)
-- Iteration 2 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation6/copy_variation6_sub/copy_copy_variation6.tmp
Size of source file => int(0)
Size of destination file => int(0)
-- Iteration 3 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation6/copy_variation6_sub/copy_copy_variation6.tmp
Size of source file => int(0)
Size of destination file => int(0)
-- Iteration 4 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation6/copy_variation6_sub/../copy_copy_variation6.tmp
Size of source file => int(0)
Size of destination file => int(0)
-- Iteration 5 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation6/copy_variation6_sub/../copy_variation6_sub/copy_copy_variation6.tmp
Size of source file => int(0)
Size of destination file => int(0)
-- Iteration 6 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation6/copy_variation6_sub/..///../copy_copy_variation6.tmp
Size of source file => int(0)
Size of destination file => int(0)
-- Iteration 7 --
Copy operation =>
Warning: copy(%s/copy_variation6/copy_variation6_sub/..///../*): failed to open stream: No such file or directory in %s on line %d
bool(false)
Existence of destination file => bool(false)
-- Iteration 8 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation6/copy_variation6_sub/copy variation6/copy_copy_variation6.tmp
Size of source file => int(0)
Size of destination file => int(0)
*** Done ***

View file

@ -140,64 +140,3 @@ Destination file name is => %s/copy_variation6/copy_variation6_sub/copy variatio
Size of source file => int(0)
Size of destination file => int(0)
*** Done ***
--UEXPECTF--
*** Test copy() function: copying file across directories ***
Size of source file => int(0)
-- Now applying copy() on source file to create copies --
-- Iteration 1 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation6/copy_copy_variation6.tmp
Size of source file => int(0)
Size of destination file => int(0)
-- Iteration 2 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation6/copy_variation6_sub/copy_copy_variation6.tmp
Size of source file => int(0)
Size of destination file => int(0)
-- Iteration 3 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation6/copy_variation6_sub/copy_copy_variation6.tmp
Size of source file => int(0)
Size of destination file => int(0)
-- Iteration 4 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation6/copy_variation6_sub/../copy_copy_variation6.tmp
Size of source file => int(0)
Size of destination file => int(0)
-- Iteration 5 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation6/copy_variation6_sub/../copy_variation6_sub/copy_copy_variation6.tmp
Size of source file => int(0)
Size of destination file => int(0)
-- Iteration 6 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation6/copy_variation6_sub/..///../copy_copy_variation6.tmp
Size of source file => int(0)
Size of destination file => int(0)
-- Iteration 7 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation6/copy_variation6_sub/..///../*
Size of source file => int(0)
Size of destination file => int(0)
-- Iteration 8 --
Copy operation => bool(true)
Existence of destination file => bool(true)
Destination file name is => %s/copy_variation6/copy_variation6_sub/copy variation6/copy_copy_variation6.tmp
Size of source file => int(0)
Size of destination file => int(0)
*** Done ***

View file

@ -84,22 +84,3 @@ bool(false)
bool(true)
int(3600)
*** Done ***
--UEXPECTF--
*** Testing copy() with symlink and hardlink ***
Size of source files =>
int(%d)
int(3600)
-- Now applying copy() on source link to create copies --
-- With symlink --
bool(true)
bool(true)
bool(false)
bool(true)
int(3600)
-- With hardlink --
bool(true)
bool(true)
bool(false)
bool(true)
int(3600)
*** Done ***

View file

@ -75,106 +75,7 @@ rmdir($base_dir);
echo "*** Done ***\n";
?>
--EXPECTF--
*** Testing copy() function: copying links across different directories ***
-- Iteration 1 --
- With symlink -
bool(true)
bool(true)
bool(false)
bool(true)
- With hardlink -
bool(true)
bool(true)
bool(false)
bool(true)
-- Iteration 2 --
- With symlink -
bool(true)
bool(true)
bool(false)
bool(true)
- With hardlink -
bool(true)
bool(true)
bool(false)
bool(true)
-- Iteration 3 --
- With symlink -
bool(true)
bool(true)
bool(false)
bool(true)
- With hardlink -
bool(true)
bool(true)
bool(false)
bool(true)
-- Iteration 4 --
- With symlink -
bool(true)
bool(true)
bool(false)
bool(true)
- With hardlink -
bool(true)
bool(true)
bool(false)
bool(true)
-- Iteration 5 --
- With symlink -
bool(true)
bool(true)
bool(false)
bool(true)
- With hardlink -
bool(true)
bool(true)
bool(false)
bool(true)
-- Iteration 6 --
- With symlink -
bool(true)
bool(true)
bool(false)
bool(true)
- With hardlink -
bool(true)
bool(true)
bool(false)
bool(true)
-- Iteration 7 --
- With symlink -
bool(true)
bool(true)
bool(false)
bool(true)
- With hardlink -
bool(true)
bool(true)
bool(false)
bool(true)
-- Iteration 8 --
- With symlink -
bool(true)
bool(true)
bool(false)
bool(true)
- With hardlink -
bool(true)
bool(true)
bool(false)
bool(true)
*** Done ***
--UEXPECTF--
--EXPECT--
*** Testing copy() function: copying links across different directories ***
-- Iteration 1 --

View file

@ -56,24 +56,7 @@ echo "*** Done ***\n";
unlink(dirname(__FILE__)."/copy_copy_variation9.tmp");
unlink(dirname(__FILE__)."/copy_variation9.tmp");
?>
--EXPECTF--
*** Test copy() function: destination with/without write permissions ***
-- With write permissions --
bool(true)
bool(true)
bool(true)
int(1500)
-- Without write permissions --
bool(true)
Warning: %s
bool(false)
bool(true)
int(1500)
*** Done ***
--UEXPECTF--
--EXPECT--
*** Test copy() function: destination with/without write permissions ***
-- With write permissions --

View file

@ -25,7 +25,7 @@ var_dump(disk_total_space("/some/path/here"));
echo "Done\n";
?>
--EXPECTF--
--EXPECTF--
Warning: disk_free_space() expects exactly 1 parameter, 0 given in %s on line %d
NULL

View file

@ -68,20 +68,3 @@ float(%d)
float(%d)
--- Done ---
--UEXPECTF--
*** Testing with existing directory ***
float(%d)
float(%d)
*** Testing with newly created directory ***
Free Space before writing to a file
float(%d)
Free Space after writing to a file
float(%d)
Free Space Value Is Correct
*** Testing with Binary Input ***
float(%d)
--- Done ---

View file

@ -63,39 +63,6 @@ Warning: diskfreespace(): The system cannot find the path specified.
in %s on line %d
bool(false)
Warning: disk_free_space(): The directory name is invalid.
in %s on line %d
bool(false)
Warning: diskfreespace(): The directory name is invalid.
in %s on line %d
bool(false)
-- Done --
--UEXPECTF--
*** Testing error conditions ***
Warning: disk_free_space() expects exactly 1 parameter, 0 given in %s on line %d
NULL
Warning: diskfreespace() expects exactly 1 parameter, 0 given in %s on line %d
NULL
Warning: disk_free_space() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Warning: diskfreespace() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Warning: disk_free_space(): The system cannot find the path specified.
in %s on line %d
bool(false)
Warning: diskfreespace(): The system cannot find the path specified.
in %s on line %d
bool(false)
Notice: fwrite(): 36 character unicode buffer downcoded for binary stream runtime_encoding in %s on line %d
Warning: disk_free_space(): The directory name is invalid.

View file

@ -64,28 +64,3 @@ float(%d)
float(%d)
-- Done --
--UEXPECTF--
*** Testing error conditions ***
Warning: disk_free_space() expects exactly 1 parameter, 0 given in %s on line %d
NULL
Warning: diskfreespace() expects exactly 1 parameter, 0 given in %s on line %d
NULL
Warning: disk_free_space() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Warning: diskfreespace() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Warning: disk_free_space(): No such file or directory in %s on line %d
bool(false)
Warning: diskfreespace(): No such file or directory in %s on line %d
bool(false)
float(%d)
float(%d)
-- Done --

View file

@ -121,61 +121,3 @@ float(%d)
float(%d)
--- Done ---
--UEXPECTF--
*** Testing with a directory ***
float(%d)
float(%d)
Testing for the return type ***
bool(true)
*** Testing with different directory combinations ***
-- Iteration 1 --
float(%d)
float(%d)
-- Iteration 2 --
float(%d)
float(%d)
-- Iteration 3 --
float(%d)
float(%d)
-- Iteration 4 --
float(%d)
float(%d)
-- Iteration 5 --
float(%d)
float(%d)
-- Iteration 6 --
float(%d)
float(%d)
-- Iteration 7 --
float(%d)
float(%d)
-- Iteration 8 --
float(%d)
float(%d)
-- Iteration 9 --
float(%d)
float(%d)
-- Iteration 10 --
float(%d)
float(%d)
-- Iteration 11 --
float(%d)
float(%d)
-- Iteration 12 --
float(%d)
float(%d)
--- Done ---

View file

@ -46,13 +46,3 @@ Total Space after writing to a file
float(%d)
-- Done --
--UEXPECTF--
*** Testing with normal directory ***
float(%d)
*** Testing with newly created directory ***
float(%d)
Total Space after writing to a file
float(%d)
-- Done --

View file

@ -48,25 +48,6 @@ Warning: disk_total_space(): The system cannot find the path specified.
in %s on line %d
bool(false)
Warning: disk_total_space(): The directory name is invalid.
in %s on line %d
bool(false)
--- Done ---
--UEXPECTF--
*** Testing error conditions ***
Warning: disk_total_space() expects exactly 1 parameter, 0 given in %s on line %d
NULL
Warning: disk_total_space() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Warning: disk_total_space(): The system cannot find the path specified.
in %s on line %d
bool(false)
Notice: fwrite(): 36 character unicode buffer downcoded for binary stream runtime_encoding in %s on line %d
Warning: disk_total_space(): The directory name is invalid.

View file

@ -49,18 +49,3 @@ bool(false)
float(%d)
--- Done ---
--UEXPECTF--
*** Testing error conditions ***
Warning: disk_total_space() expects exactly 1 parameter, 0 given in %s on line %d
NULL
Warning: disk_total_space() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Warning: disk_total_space(): No such file or directory in %s on line %d
bool(false)
float(%d)
--- Done ---

View file

@ -113,50 +113,3 @@ float(%d)
float(%d)
--- Done ---
--UEXPECTF--
*** Testing with a directory ***
float(%d)
Testing for the return type ***
bool(true)
*** Testing with different directory combinations ***
-- Iteration 1 --
float(%d)
-- Iteration 2 --
float(%d)
-- Iteration 3 --
float(%d)
-- Iteration 4 --
float(%d)
-- Iteration 5 --
float(%d)
-- Iteration 6 --
float(%d)
-- Iteration 7 --
float(%d)
-- Iteration 8 --
float(%d)
-- Iteration 9 --
float(%d)
-- Iteration 10 --
float(%d)
-- Iteration 11 --
float(%d)
-- Iteration 12 --
float(%d)
*** Testing with Binary Input ***
float(%d)
--- Done ---

View file

@ -42,18 +42,6 @@ unlink($filename);
--EXPECTF--
*** Testing fflush(): writing to a file and reading the contents ***
int(63)
bool(true)
first line of string
second line of string
third line of stringint(63)
*** Testing fflush(): for return type ***
bool(true)
*** Done ***
--UEXPECTF--
*** Testing fflush(): writing to a file and reading the contents ***
Notice: fwrite(): 63 character unicode buffer downcoded for binary stream runtime_encoding in %s on line %d
int(63)

View file

@ -87,41 +87,3 @@ Warning: fflush(): supplied argument is not a valid stream resource in %s on lin
bool(false)
*** Done ***
--UEXPECTF--
*** Testing error conditions ***
-- Testing fflush(): with zero argument --
Warning: Wrong parameter count for fflush() in %s on line %d
NULL
-- Testing fflush(): with more than expected number of arguments --
Warning: Wrong parameter count for fflush() in %s on line %d
NULL
-- Testing fflush(): with invalid arguments --
-- Iteration 1 --
Warning: fflush(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
-- Iteration 2 --
Warning: fflush(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
-- Iteration 3 --
Warning: fflush(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
-- Iteration 4 --
Warning: fflush(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
-- Iteration 5 --
Warning: fflush(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
-- Iteration 6 --
Warning: fflush(): supplied argument is not a valid stream resource in %s on line %d
bool(false)
*** Done ***

View file

@ -63,473 +63,7 @@ foreach( $file_types as $type ) {
echo "\n*** Done ***";
?>
--EXPECTF--
*** Testing fflush(): with various types of files ***
-- Iteration 1 with file containing empty Data--
-- File opened in w mode --
bool(true)
bool(true)
int(0)
-- File opened in wb mode --
bool(true)
bool(true)
int(0)
-- File opened in wt mode --
bool(true)
bool(true)
int(0)
-- File opened in w+ mode --
bool(true)
bool(true)
int(0)
-- File opened in w+b mode --
bool(true)
bool(true)
int(0)
-- File opened in w+t mode --
bool(true)
bool(true)
int(0)
-- File opened in a mode --
bool(true)
bool(true)
int(0)
-- File opened in ab mode --
bool(true)
bool(true)
int(0)
-- File opened in at mode --
bool(true)
bool(true)
int(0)
-- File opened in a+ mode --
bool(true)
bool(true)
int(0)
-- File opened in a+b mode --
bool(true)
bool(true)
int(0)
-- File opened in a+t mode --
bool(true)
bool(true)
int(0)
-- File opened in x mode --
bool(true)
bool(true)
int(0)
-- File opened in xb mode --
bool(true)
bool(true)
int(0)
-- File opened in xt mode --
bool(true)
bool(true)
int(0)
-- File opened in x+ mode --
bool(true)
bool(true)
int(0)
-- File opened in x+b mode --
bool(true)
bool(true)
int(0)
-- File opened in x+t mode --
bool(true)
bool(true)
int(0)
-- Iteration 2 with file containing numeric Data--
-- File opened in w mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in wb mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in wt mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in w+ mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in w+b mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in w+t mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in a mode --
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- File opened in ab mode --
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- File opened in at mode --
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- File opened in a+ mode --
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- File opened in a+b mode --
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- File opened in a+t mode --
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- File opened in x mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in xb mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in xt mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in x+ mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in x+b mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in x+t mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- Iteration 3 with file containing text Data--
-- File opened in w mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in wb mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in wt mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in w+ mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in w+b mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in w+t mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in a mode --
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- File opened in ab mode --
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- File opened in at mode --
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- File opened in a+ mode --
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- File opened in a+b mode --
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- File opened in a+t mode --
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- File opened in x mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in xb mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in xt mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in x+ mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in x+b mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in x+t mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- Iteration 4 with file containing text_with_new_line Data--
-- File opened in w mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in wb mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in wt mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(55)
-- File opened in w+ mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in w+b mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in w+t mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(55)
-- File opened in a mode --
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
-- File opened in ab mode --
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
-- File opened in at mode --
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(65)
-- File opened in a+ mode --
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
-- File opened in a+b mode --
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
-- File opened in a+t mode --
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(65)
-- File opened in x mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in xb mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in xt mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(55)
-- File opened in x+ mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in x+b mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in x+t mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(55)
-- Iteration 5 with file containing alphanumeric Data--
-- File opened in w mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in wb mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in wt mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in w+ mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in w+b mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in w+t mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in a mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
-- File opened in ab mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
-- File opened in at mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
-- File opened in a+ mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
-- File opened in a+b mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
-- File opened in a+t mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
-- File opened in x mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in xb mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in xt mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in x+ mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in x+b mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in x+t mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
*** Done ***
--UEXPECTF--
--EXPECT--
*** Testing fflush(): with various types of files ***
-- Iteration 1 with file containing empty Data--
-- File opened in w mode --

View file

@ -64,473 +64,7 @@ foreach( $file_types as $type ) {
echo "\n*** Done ***";
?>
--EXPECTF--
*** Testing fflush(): with various types of files ***
-- Iteration 1 with file containing empty Data--
-- File opened in w mode --
bool(true)
bool(true)
int(0)
-- File opened in wb mode --
bool(true)
bool(true)
int(0)
-- File opened in wt mode --
bool(true)
bool(true)
int(0)
-- File opened in w+ mode --
bool(true)
bool(true)
int(0)
-- File opened in w+b mode --
bool(true)
bool(true)
int(0)
-- File opened in w+t mode --
bool(true)
bool(true)
int(0)
-- File opened in a mode --
bool(true)
bool(true)
int(0)
-- File opened in ab mode --
bool(true)
bool(true)
int(0)
-- File opened in at mode --
bool(true)
bool(true)
int(0)
-- File opened in a+ mode --
bool(true)
bool(true)
int(0)
-- File opened in a+b mode --
bool(true)
bool(true)
int(0)
-- File opened in a+t mode --
bool(true)
bool(true)
int(0)
-- File opened in x mode --
bool(true)
bool(true)
int(0)
-- File opened in xb mode --
bool(true)
bool(true)
int(0)
-- File opened in xt mode --
bool(true)
bool(true)
int(0)
-- File opened in x+ mode --
bool(true)
bool(true)
int(0)
-- File opened in x+b mode --
bool(true)
bool(true)
int(0)
-- File opened in x+t mode --
bool(true)
bool(true)
int(0)
-- Iteration 2 with file containing numeric Data--
-- File opened in w mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in wb mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in wt mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in w+ mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in w+b mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in w+t mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in a mode --
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- File opened in ab mode --
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- File opened in at mode --
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- File opened in a+ mode --
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- File opened in a+b mode --
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- File opened in a+t mode --
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- File opened in x mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in xb mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in xt mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in x+ mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in x+b mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- File opened in x+t mode --
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- Iteration 3 with file containing text Data--
-- File opened in w mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in wb mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in wt mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in w+ mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in w+b mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in w+t mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in a mode --
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- File opened in ab mode --
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- File opened in at mode --
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- File opened in a+ mode --
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- File opened in a+b mode --
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- File opened in a+t mode --
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- File opened in x mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in xb mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in xt mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in x+ mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in x+b mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- File opened in x+t mode --
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- Iteration 4 with file containing text_with_new_line Data--
-- File opened in w mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in wb mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in wt mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in w+ mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in w+b mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in w+t mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in a mode --
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
-- File opened in ab mode --
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
-- File opened in at mode --
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
-- File opened in a+ mode --
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
-- File opened in a+b mode --
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
-- File opened in a+t mode --
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
-- File opened in x mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in xb mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in xt mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in x+ mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in x+b mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- File opened in x+t mode --
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- Iteration 5 with file containing alphanumeric Data--
-- File opened in w mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in wb mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in wt mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in w+ mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in w+b mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in w+t mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in a mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
-- File opened in ab mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
-- File opened in at mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
-- File opened in a+ mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
-- File opened in a+b mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
-- File opened in a+t mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
-- File opened in x mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in xb mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in xt mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in x+ mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in x+b mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- File opened in x+t mode --
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
*** Done ***
--UEXPECTF--
--EXPECT--
*** Testing fflush(): with various types of files ***
-- Iteration 1 with file containing empty Data--
-- File opened in w mode --

View file

@ -65,383 +65,7 @@ foreach( $file_types as $type ) {
echo "\n*** Done ***";
?>
--EXPECTF--
*** Testing fflush(): with soft links to files opened in diff modes ***
-- Iteration 1 with file containing empty data --
-- link opened in w mode --
bool(true)
bool(true)
bool(true)
int(0)
-- link opened in wb mode --
bool(true)
bool(true)
bool(true)
int(0)
-- link opened in wt mode --
bool(true)
bool(true)
bool(true)
int(0)
-- link opened in w+ mode --
bool(true)
bool(true)
bool(true)
int(0)
-- link opened in w+b mode --
bool(true)
bool(true)
bool(true)
int(0)
-- link opened in w+t mode --
bool(true)
bool(true)
bool(true)
int(0)
-- link opened in a mode --
bool(true)
bool(true)
bool(true)
int(0)
-- link opened in ab mode --
bool(true)
bool(true)
bool(true)
int(0)
-- link opened in at mode --
bool(true)
bool(true)
bool(true)
int(0)
-- link opened in a+ mode --
bool(true)
bool(true)
bool(true)
int(0)
-- link opened in a+b mode --
bool(true)
bool(true)
bool(true)
int(0)
-- link opened in a+t mode --
bool(true)
bool(true)
bool(true)
int(0)
-- Iteration 2 with file containing numeric data --
-- link opened in w mode --
bool(true)
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- link opened in wb mode --
bool(true)
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- link opened in wt mode --
bool(true)
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- link opened in w+ mode --
bool(true)
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- link opened in w+b mode --
bool(true)
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- link opened in w+t mode --
bool(true)
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
-- link opened in a mode --
bool(true)
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- link opened in ab mode --
bool(true)
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- link opened in at mode --
bool(true)
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- link opened in a+ mode --
bool(true)
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- link opened in a+b mode --
bool(true)
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- link opened in a+t mode --
bool(true)
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- Iteration 3 with file containing text data --
-- link opened in w mode --
bool(true)
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- link opened in wb mode --
bool(true)
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- link opened in wt mode --
bool(true)
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- link opened in w+ mode --
bool(true)
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- link opened in w+b mode --
bool(true)
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- link opened in w+t mode --
bool(true)
bool(true)
bool(true)
text text text text text text text text text text int(50)
-- link opened in a mode --
bool(true)
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- link opened in ab mode --
bool(true)
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- link opened in at mode --
bool(true)
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- link opened in a+ mode --
bool(true)
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- link opened in a+b mode --
bool(true)
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- link opened in a+t mode --
bool(true)
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- Iteration 4 with file containing text_with_new_line data --
-- link opened in w mode --
bool(true)
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- link opened in wb mode --
bool(true)
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- link opened in wt mode --
bool(true)
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- link opened in w+ mode --
bool(true)
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- link opened in w+b mode --
bool(true)
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- link opened in w+t mode --
bool(true)
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
-- link opened in a mode --
bool(true)
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
-- link opened in ab mode --
bool(true)
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
-- link opened in at mode --
bool(true)
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
-- link opened in a+ mode --
bool(true)
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
-- link opened in a+b mode --
bool(true)
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
-- link opened in a+t mode --
bool(true)
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
-- Iteration 5 with file containing alphanumeric data --
-- link opened in w mode --
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- link opened in wb mode --
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- link opened in wt mode --
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- link opened in w+ mode --
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- link opened in w+b mode --
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- link opened in w+t mode --
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
-- link opened in a mode --
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
-- link opened in ab mode --
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
-- link opened in at mode --
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
-- link opened in a+ mode --
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
-- link opened in a+b mode --
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
-- link opened in a+t mode --
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
*** Done ***
--UEXPECTF--
--EXPECT--
*** Testing fflush(): with soft links to files opened in diff modes ***
-- Iteration 1 with file containing empty data --
-- link opened in w mode --

View file

@ -65,323 +65,7 @@ foreach( $file_types as $type ) {
echo "\n*** Done ***";
?>
--EXPECTF--
*** Testing fflush(): with hard links to files opened in diff modes ***
-- Iteration 1 with file containing empty data --
bool(true)
bool(true)
bool(true)
int(0)
bool(true)
bool(true)
bool(true)
int(0)
bool(true)
bool(true)
bool(true)
int(0)
bool(true)
bool(true)
bool(true)
int(0)
bool(true)
bool(true)
bool(true)
int(0)
bool(true)
bool(true)
bool(true)
int(0)
bool(true)
bool(true)
bool(true)
int(0)
bool(true)
bool(true)
bool(true)
int(0)
bool(true)
bool(true)
bool(true)
int(0)
bool(true)
bool(true)
bool(true)
int(0)
bool(true)
bool(true)
bool(true)
int(0)
bool(true)
bool(true)
bool(true)
int(0)
-- Iteration 2 with file containing numeric data --
bool(true)
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
bool(true)
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
bool(true)
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
bool(true)
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
bool(true)
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
bool(true)
bool(true)
bool(true)
22222222222222222222222222222222222222222222222222int(50)
bool(true)
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
bool(true)
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
bool(true)
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
bool(true)
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
bool(true)
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
bool(true)
bool(true)
bool(true)
222222222222222222222222222222222222222222222222222222222222int(60)
-- Iteration 3 with file containing text data --
bool(true)
bool(true)
bool(true)
text text text text text text text text text text int(50)
bool(true)
bool(true)
bool(true)
text text text text text text text text text text int(50)
bool(true)
bool(true)
bool(true)
text text text text text text text text text text int(50)
bool(true)
bool(true)
bool(true)
text text text text text text text text text text int(50)
bool(true)
bool(true)
bool(true)
text text text text text text text text text text int(50)
bool(true)
bool(true)
bool(true)
text text text text text text text text text text int(50)
bool(true)
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
bool(true)
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
bool(true)
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
bool(true)
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
bool(true)
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
bool(true)
bool(true)
bool(true)
text text text text text text text text text text text text int(60)
-- Iteration 4 with file containing text_with_new_line data --
bool(true)
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
bool(true)
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
bool(true)
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
bool(true)
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
bool(true)
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
bool(true)
bool(true)
bool(true)
line
line of text
line
line of text
line
line of tint(50)
bool(true)
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
bool(true)
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
bool(true)
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
bool(true)
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
bool(true)
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
bool(true)
bool(true)
bool(true)
line
line line
line of text
line
line of text
line
line of tint(60)
-- Iteration 5 with file containing alphanumeric data --
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(50)
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
bool(true)
bool(true)
bool(true)
ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 ab12 int(60)
*** Done ***
--UEXPECTF--
--EXPECT--
*** Testing fflush(): with hard links to files opened in diff modes ***
-- Iteration 1 with file containing empty data --
bool(true)

View file

@ -40,18 +40,7 @@ foreach( $file_modes as $mode ) {
echo "\n*** Done ***";
?>
--EXPECTF--
*** Testing fflush(): with file handles of files opened in various read modes ***
-- Iteration 1 with file opened in r mode --
bool(true)
-- Iteration 2 with file opened in rb mode --
bool(true)
-- Iteration 3 with file opened in rt mode --
bool(true)
*** Done ***
--UEXPECTF--
--EXPECT--
*** Testing fflush(): with file handles of files opened in various read modes ***
-- Iteration 1 with file opened in r mode --
bool(true)

View file

@ -118,486 +118,6 @@ bool(false)
resource(%d) of type (stream)
-- Innerloop iteration 3 of Outerloop Iteration 1 --
-- Testing fgetc() : file opened using rt mode --
string(1) "2"
int(1)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(2)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(3)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(4)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(5)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(6)
bool(false)
resource(%d) of type (stream)
-- Innerloop iteration 4 of Outerloop Iteration 1 --
-- Testing fgetc() : file opened using r+ mode --
string(1) "2"
int(1)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(2)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(3)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(4)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(5)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(6)
bool(false)
resource(%d) of type (stream)
-- Innerloop iteration 5 of Outerloop Iteration 1 --
-- Testing fgetc() : file opened using r+b mode --
string(1) "2"
int(1)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(2)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(3)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(4)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(5)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(6)
bool(false)
resource(%d) of type (stream)
-- Innerloop iteration 6 of Outerloop Iteration 1 --
-- Testing fgetc() : file opened using r+t mode --
string(1) "2"
int(1)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(2)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(3)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(4)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(5)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(6)
bool(false)
resource(%d) of type (stream)
--- Outerloop iteration 2 ---
-- Innerloop iteration 1 of Outerloop Iteration 2 --
-- Testing fgetc() : file opened using r mode --
string(1) "t"
int(1)
bool(false)
resource(%d) of type (stream)
string(1) "e"
int(2)
bool(false)
resource(%d) of type (stream)
string(1) "x"
int(3)
bool(false)
resource(%d) of type (stream)
string(1) "t"
int(4)
bool(false)
resource(%d) of type (stream)
string(1) " "
int(5)
bool(false)
resource(%d) of type (stream)
string(1) "t"
int(6)
bool(false)
resource(%d) of type (stream)
-- Innerloop iteration 2 of Outerloop Iteration 2 --
-- Testing fgetc() : file opened using rb mode --
string(1) "t"
int(1)
bool(false)
resource(%d) of type (stream)
string(1) "e"
int(2)
bool(false)
resource(%d) of type (stream)
string(1) "x"
int(3)
bool(false)
resource(%d) of type (stream)
string(1) "t"
int(4)
bool(false)
resource(%d) of type (stream)
string(1) " "
int(5)
bool(false)
resource(%d) of type (stream)
string(1) "t"
int(6)
bool(false)
resource(%d) of type (stream)
-- Innerloop iteration 3 of Outerloop Iteration 2 --
-- Testing fgetc() : file opened using rt mode --
string(1) "t"
int(1)
bool(false)
resource(%d) of type (stream)
string(1) "e"
int(2)
bool(false)
resource(%d) of type (stream)
string(1) "x"
int(3)
bool(false)
resource(%d) of type (stream)
string(1) "t"
int(4)
bool(false)
resource(%d) of type (stream)
string(1) " "
int(5)
bool(false)
resource(%d) of type (stream)
string(1) "t"
int(6)
bool(false)
resource(%d) of type (stream)
-- Innerloop iteration 4 of Outerloop Iteration 2 --
-- Testing fgetc() : file opened using r+ mode --
string(1) "t"
int(1)
bool(false)
resource(%d) of type (stream)
string(1) "e"
int(2)
bool(false)
resource(%d) of type (stream)
string(1) "x"
int(3)
bool(false)
resource(%d) of type (stream)
string(1) "t"
int(4)
bool(false)
resource(%d) of type (stream)
string(1) " "
int(5)
bool(false)
resource(%d) of type (stream)
string(1) "t"
int(6)
bool(false)
resource(%d) of type (stream)
-- Innerloop iteration 5 of Outerloop Iteration 2 --
-- Testing fgetc() : file opened using r+b mode --
string(1) "t"
int(1)
bool(false)
resource(%d) of type (stream)
string(1) "e"
int(2)
bool(false)
resource(%d) of type (stream)
string(1) "x"
int(3)
bool(false)
resource(%d) of type (stream)
string(1) "t"
int(4)
bool(false)
resource(%d) of type (stream)
string(1) " "
int(5)
bool(false)
resource(%d) of type (stream)
string(1) "t"
int(6)
bool(false)
resource(%d) of type (stream)
-- Innerloop iteration 6 of Outerloop Iteration 2 --
-- Testing fgetc() : file opened using r+t mode --
string(1) "t"
int(1)
bool(false)
resource(%d) of type (stream)
string(1) "e"
int(2)
bool(false)
resource(%d) of type (stream)
string(1) "x"
int(3)
bool(false)
resource(%d) of type (stream)
string(1) "t"
int(4)
bool(false)
resource(%d) of type (stream)
string(1) " "
int(5)
bool(false)
resource(%d) of type (stream)
string(1) "t"
int(6)
bool(false)
resource(%d) of type (stream)
--- Outerloop iteration 3 ---
-- Innerloop iteration 1 of Outerloop Iteration 3 --
-- Testing fgetc() : file opened using r mode --
string(1) "l"
int(1)
bool(false)
resource(%d) of type (stream)
string(1) "i"
int(2)
bool(false)
resource(%d) of type (stream)
string(1) "n"
int(3)
bool(false)
resource(%d) of type (stream)
string(1) "e"
int(4)
bool(false)
resource(%d) of type (stream)
string(1) "
"
int(5)
bool(false)
resource(%d) of type (stream)
string(1) "l"
int(6)
bool(false)
resource(%d) of type (stream)
-- Innerloop iteration 2 of Outerloop Iteration 3 --
-- Testing fgetc() : file opened using rb mode --
string(1) "l"
int(1)
bool(false)
resource(%d) of type (stream)
string(1) "i"
int(2)
bool(false)
resource(%d) of type (stream)
string(1) "n"
int(3)
bool(false)
resource(%d) of type (stream)
string(1) "e"
int(4)
bool(false)
resource(%d) of type (stream)
string(1) "
"
int(5)
bool(false)
resource(%d) of type (stream)
string(1) "l"
int(6)
bool(false)
resource(%d) of type (stream)
-- Innerloop iteration 3 of Outerloop Iteration 3 --
-- Testing fgetc() : file opened using rt mode --
string(1) "l"
int(1)
bool(false)
resource(%d) of type (stream)
string(1) "i"
int(2)
bool(false)
resource(%d) of type (stream)
string(1) "n"
int(3)
bool(false)
resource(%d) of type (stream)
string(1) "e"
int(4)
bool(false)
resource(%d) of type (stream)
string(1) "
"
int(5)
bool(false)
resource(%d) of type (stream)
string(1) "l"
int(6)
bool(false)
resource(%d) of type (stream)
-- Innerloop iteration 4 of Outerloop Iteration 3 --
-- Testing fgetc() : file opened using r+ mode --
string(1) "l"
int(1)
bool(false)
resource(%d) of type (stream)
string(1) "i"
int(2)
bool(false)
resource(%d) of type (stream)
string(1) "n"
int(3)
bool(false)
resource(%d) of type (stream)
string(1) "e"
int(4)
bool(false)
resource(%d) of type (stream)
string(1) "
"
int(5)
bool(false)
resource(%d) of type (stream)
string(1) "l"
int(6)
bool(false)
resource(%d) of type (stream)
-- Innerloop iteration 5 of Outerloop Iteration 3 --
-- Testing fgetc() : file opened using r+b mode --
string(1) "l"
int(1)
bool(false)
resource(%d) of type (stream)
string(1) "i"
int(2)
bool(false)
resource(%d) of type (stream)
string(1) "n"
int(3)
bool(false)
resource(%d) of type (stream)
string(1) "e"
int(4)
bool(false)
resource(%d) of type (stream)
string(1) "
"
int(5)
bool(false)
resource(%d) of type (stream)
string(1) "l"
int(6)
bool(false)
resource(%d) of type (stream)
-- Innerloop iteration 6 of Outerloop Iteration 3 --
-- Testing fgetc() : file opened using r+t mode --
string(1) "l"
int(1)
bool(false)
resource(%d) of type (stream)
string(1) "i"
int(2)
bool(false)
resource(%d) of type (stream)
string(1) "n"
int(3)
bool(false)
resource(%d) of type (stream)
string(1) "e"
int(4)
bool(false)
resource(%d) of type (stream)
string(1) "
"
int(5)
bool(false)
resource(%d) of type (stream)
string(1) "l"
int(6)
bool(false)
resource(%d) of type (stream)
Done
--UEXPECTF--
*** Testing fgetc() : basic operations ***
--- Outerloop iteration 1 ---
-- Innerloop iteration 1 of Outerloop Iteration 1 --
-- Testing fgetc() : file opened using r mode --
string(1) "2"
int(1)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(2)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(3)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(4)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(5)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(6)
bool(false)
resource(%d) of type (stream)
-- Innerloop iteration 2 of Outerloop Iteration 1 --
-- Testing fgetc() : file opened using rb mode --
string(1) "2"
int(1)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(2)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(3)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(4)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(5)
bool(false)
resource(%d) of type (stream)
string(1) "2"
int(6)
bool(false)
resource(%d) of type (stream)
-- Innerloop iteration 3 of Outerloop Iteration 1 --
-- Testing fgetc() : file opened using rt mode --
unicode(1) "2"
int(1)
bool(false)

Some files were not shown because too many files have changed in this diff Show more