mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix test cases
These tests are not supposed to check the result of `fclose(false)`.
This commit is contained in:
parent
2297a6d364
commit
2ad75ba784
2 changed files with 2 additions and 22 deletions
|
@ -64,9 +64,9 @@ foreach($paths as $path) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fpassthru($h);
|
fpassthru($h);
|
||||||
|
fclose($h);
|
||||||
echo "\n";
|
echo "\n";
|
||||||
}
|
}
|
||||||
fclose($h);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
unlink($firstfile);
|
unlink($firstfile);
|
||||||
|
@ -91,22 +91,16 @@ file in root
|
||||||
Warning: fopen(c\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d
|
Warning: fopen(c\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d
|
||||||
file not opened for read
|
file not opened for read
|
||||||
|
|
||||||
Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
|
|
||||||
|
|
||||||
--\--
|
--\--
|
||||||
|
|
||||||
Warning: fopen(\\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d
|
Warning: fopen(\\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d
|
||||||
file not opened for read
|
file not opened for read
|
||||||
|
|
||||||
Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
|
|
||||||
|
|
||||||
--/--
|
--/--
|
||||||
|
|
||||||
Warning: fopen(/\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d
|
Warning: fopen(/\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d
|
||||||
file not opened for read
|
file not opened for read
|
||||||
|
|
||||||
Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
|
|
||||||
|
|
||||||
--c:fopen10.tmpdirTwo--
|
--c:fopen10.tmpdirTwo--
|
||||||
file in fopen10.tmpdirTwo
|
file in fopen10.tmpdirTwo
|
||||||
|
|
||||||
|
@ -115,8 +109,6 @@ file in fopen10.tmpdirTwo
|
||||||
Warning: fopen(c:adir\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d
|
Warning: fopen(c:adir\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d
|
||||||
file not opened for read
|
file not opened for read
|
||||||
|
|
||||||
Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
|
|
||||||
|
|
||||||
--c:\/--
|
--c:\/--
|
||||||
file in root
|
file in root
|
||||||
|
|
||||||
|
@ -136,5 +128,3 @@ file in fopen10.tmpDir
|
||||||
|
|
||||||
Warning: fopen(/sortout\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d
|
Warning: fopen(/sortout\fopen_variation10.tmp): Failed to open stream: No such file or directory in %s on line %d
|
||||||
file not opened for read
|
file not opened for read
|
||||||
|
|
||||||
Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
|
|
||||||
|
|
|
@ -63,9 +63,9 @@ foreach($paths as $path) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fpassthru($h);
|
fpassthru($h);
|
||||||
|
fclose($h);
|
||||||
echo "\n";
|
echo "\n";
|
||||||
}
|
}
|
||||||
fclose($h);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
unlink($firstfile);
|
unlink($firstfile);
|
||||||
|
@ -89,22 +89,16 @@ file in root
|
||||||
Warning: fopen(c\fopen_variation11.tmp): Failed to open stream: No such file or directory in %s on line %d
|
Warning: fopen(c\fopen_variation11.tmp): Failed to open stream: No such file or directory in %s on line %d
|
||||||
file not opened for read
|
file not opened for read
|
||||||
|
|
||||||
Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
|
|
||||||
|
|
||||||
--\--
|
--\--
|
||||||
|
|
||||||
Warning: fopen(\\FOPEN_VARIATION11.TMP): Failed to open stream: No such file or directory in %s on line %d
|
Warning: fopen(\\FOPEN_VARIATION11.TMP): Failed to open stream: No such file or directory in %s on line %d
|
||||||
file not opened for read
|
file not opened for read
|
||||||
|
|
||||||
Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
|
|
||||||
|
|
||||||
--/--
|
--/--
|
||||||
|
|
||||||
Warning: fopen(\\FOPEN_VARIATION11.TMP): Failed to open stream: No such file or directory in %s on line %d
|
Warning: fopen(\\FOPEN_VARIATION11.TMP): Failed to open stream: No such file or directory in %s on line %d
|
||||||
file not opened for read
|
file not opened for read
|
||||||
|
|
||||||
Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
|
|
||||||
|
|
||||||
--c:fopen11.tmpdirTwo--
|
--c:fopen11.tmpdirTwo--
|
||||||
file in fopen11.tmpdirTwo
|
file in fopen11.tmpdirTwo
|
||||||
|
|
||||||
|
@ -113,8 +107,6 @@ file in fopen11.tmpdirTwo
|
||||||
Warning: fopen(c:adir\fopen_variation11.tmp): Failed to open stream: No such file or directory in %s on line %d
|
Warning: fopen(c:adir\fopen_variation11.tmp): Failed to open stream: No such file or directory in %s on line %d
|
||||||
file not opened for read
|
file not opened for read
|
||||||
|
|
||||||
Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
|
|
||||||
|
|
||||||
--c:\/--
|
--c:\/--
|
||||||
file in root
|
file in root
|
||||||
|
|
||||||
|
@ -134,5 +126,3 @@ file in fopen11.tmpDir
|
||||||
|
|
||||||
Warning: fopen(/sortout\fopen_variation11.tmp): Failed to open stream: No such file or directory in %s on line %d
|
Warning: fopen(/sortout\fopen_variation11.tmp): Failed to open stream: No such file or directory in %s on line %d
|
||||||
file not opened for read
|
file not opened for read
|
||||||
|
|
||||||
Warning: fclose(): Argument #1 must be of type resource, bool given in %s on line %d
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue